Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting global config file based on settings #1649

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

jeffbaumes
Copy link
Member

The table view is now always active because there is always a config file, which is built from the legacy settings if no actual config file exists in the folder hierarchy.

There is now also a place to store user-specific settings, which override group settings, which override general access level settings, which override top-level settings.

@manthey Note that even though you suggested creating the file with force=bool(user_context), this is not an option when creating a file so that is currently not in there.

@jeffbaumes jeffbaumes requested a review from manthey September 25, 2024 13:21
Readjust how group access level parameters are applied and document why.
@manthey
Copy link
Member

manthey commented Sep 25, 2024

@manthey Note that even though you suggested creating the file with force=bool(user_context), this is not an option when creating a file so that is currently not in there.

I think it needs to be on the createItem call.

# Do this after merging groups, because the group access-level values can
# override the base access-level options. For instance, if the base has
# an admin option, and the group has a user option, then doing this before
# group application can end up with user options for an admin.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeffbaumes Note the rationale here -- now documented.

@manthey manthey force-pushed the settings-to-config-file branch from ae1d406 to f2facdb Compare September 25, 2024 16:10
@manthey
Copy link
Member

manthey commented Sep 25, 2024

@manthey Note that even though you suggested creating the file with force=bool(user_context), this is not an option when creating a file so that is currently not in there.

I think it needs to be on the createItem call.

I added this in f2facdb

This has to be done when checking if we can read or write the folder.
@manthey manthey force-pushed the settings-to-config-file branch from 89c6654 to 9432239 Compare September 25, 2024 17:31
@jeffbaumes
Copy link
Member Author

I updated to incorporate your changes and everything seems to be working as intended with some in-progress config-changing UI.

@jeffbaumes jeffbaumes merged commit 9911354 into master Sep 25, 2024
17 checks passed
@jeffbaumes jeffbaumes deleted the settings-to-config-file branch September 25, 2024 18:37
manthey added a commit that referenced this pull request Sep 26, 2024
With the addition of #1649, we always use the large_image itemList
rather than modifying the base girder item list.  We no longer need the
code that did that modification.

Don't display column titles on an empty list.

Make check boxes easier to click.

Allow long strings to break more efficiently.
manthey added a commit that referenced this pull request Sep 26, 2024
With the addition of #1649, we always use the large_image itemList
rather than modifying the base girder item list.  We no longer need the
code that did that modification.

Don't display column titles on an empty list.

Make check boxes easier to click.

Allow long strings to break more efficiently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants