Closed levb closed 1 year ago
I will test the following cases:
Not sure if this is a bug or not, but if I have a channel selected, I open the settings and try to select 'create a new channel', the option is not there, I have to persist the settings with the 'do not copy app logs to a channel', then open the settings again to select the 'create channel' selection (see video).
https://user-images.githubusercontent.com/488556/208077069-43e5cb28-fdac-4c99-b0ff-c0f43fd1b18e.mov
If I disable the 'Developer Mode' in MM System Console, the apps settings won't check it's disabled and it will tell it's enabled, I think both should be in the same stage since we're talking about the same? Is this a different Developer Mode?
https://user-images.githubusercontent.com/488556/208078557-8977f21a-6309-44aa-883d-64161eebdee6.mov
@javaguirre the /apps settings command provides for overriding the system-wide "Dev mode" (dev+test), so even when it's off an admin can turn it on, for the apps plugin only. Ditto HTTP. So, when the override mode is on, the overrides are used; when it's off - the system-wide settings are.
If the override mode in the apps plugin is off, the plugin should receive OnConfigurationChanged
when you apply changes in the system console, and adjust accordingly. If it's not happening - it's a bug.
@javaguirre the /apps settings command provides for overriding the system-wide "Dev mode" (dev+test), so even when it's off an admin can turn it on, for the apps plugin only. Ditto HTTP. So, when the override mode is on, the overrides are used; when it's off - the system-wide settings are.
If the override mode in the apps plugin is off, the plugin should receive
OnConfigurationChanged
when you apply changes in the system console, and adjust accordingly. If it's not happening - it's a bug.
Thank you for the clarification! I understand now. 👍
When I try to set the --level
of the apps logs debug command, the autocomplete works, but when I submit the action it fails (attachment).
@javaguirre that's weird, the debug logs
command should be gone entirely... refresh your client? (bindings?)
@javaguirre that's weird, the
debug logs
command should be gone entirely... refresh your client? (bindings?)
I thought so, I executed a make restart
in the mattermost-server so it builds the frontend too, the webapp notified me to refresh, but the bindings are still there, I might be doing something wrong, not sure if I have to clean something else, I thought it was enough with the restart
command.
When I select a level and open the settings again, the current level is not selected, I think that would be nice.
https://user-images.githubusercontent.com/488556/208082153-5d20d0c1-c905-4aae-91ee-6869ed2ee39e.mov
This is no longer happening 👏
https://github.com/mattermost/mattermost-plugin-apps/pull/394#issuecomment-1347948166
the current level is not selected
@javaguirre ditto JSON, thx! Forgot...
Base: 20.89% // Head: 20.84% // Decreases project coverage by -0.05%
:warning:
Coverage data is based on head (
ac2df7f
) compared to base (44db542
). Patch coverage: 2.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@javaguirre I added the current value selection for Level and JSON
@javaguirre I added the current value selection for Level and JSON
I tested it and It works great 👍
https://user-images.githubusercontent.com/488556/210335874-9064006e-d160-4d0c-9129-6bedb9470108.mov
When I enable the developer mode I can't select the channel for logging until I persist that change. I have to open the modal again and then it's available to select.
I was expecting to change both at the same time, is it possible?
@javaguirre the /apps settings command provides for overriding the system-wide "Dev mode" (dev+test), so even when it's off an admin can turn it on, for the apps plugin only. Ditto HTTP. So, when the override mode is on, the overrides are used; when it's off - the system-wide settings are.
If the override mode in the apps plugin is off, the plugin should receive
OnConfigurationChanged
when you apply changes in the system console, and adjust accordingly. If it's not happening - it's a bug.
Did you manage to fix this one?
For the video - not currently fixable, filed https://mattermost.atlassian.net/browse/MM-49451
As for setting the dev mode - the apps plugin will not set the server's dev mode, only it's own. Sorry for the confusion.
Consider both resolved?
@hanzei @mickmister Can I please get a 2nd review, I'd like to merge it soon now that 1.2 is out
Tested and passed All config are functional. It is a bit confusing that some fields must be set first. I was also a bit confused that you can't simply change the channel the logs get written to. Logging to a channel must be disable and re-enabled.
@levb seeing as how the snags are minor and this is a debug tool - We can see if UX improvements are worth the effort later.
LGTM!
@levb Heads up that this PR will need to update the docs that were originally added in https://github.com/mattermost/mattermost-developer-documentation/pull/1181
Summary
/apps settings
StoredConfig
by using pointersTicket Link
none
Screenshots