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

Add new MAX_PROJECT_VISIBILITY config option #2115

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

williamjallen
Copy link
Collaborator

Some CDash administrators may want users to be able to create projects on their own, but not public or protected projects. This PR adds a new MAX_PROJECT_VISIBILITY environment variable which specifies the most visible setting a project can be configured to use. Instance administrators can override this setting, to allow some projects to be made public or protected with administrator approval.

@williamjallen williamjallen added this to the v3.4 milestone Mar 28, 2024
@williamjallen williamjallen marked this pull request as ready for review March 28, 2024 00:39
@williamjallen williamjallen force-pushed the max-project-visibility branch 2 times, most recently from e821c3e to e9e6edf Compare March 30, 2024 18:58
@josephsnyder josephsnyder self-requested a review April 3, 2024 16:03
Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

@williamjallen, most things look good in terms of project creation. I can see the dropdown change for a user as I update the .env file.

When it comes to editing a project though, the visibility selector isn't pared down like it is as the time of creation:

When creating:
image
When editing:
image

It still properly 403s with the right message if a bad choice is selected, but I would rather they not have the choice.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

Thanks for the quick update. Much better!

@josephsnyder josephsnyder added this pull request to the merge queue Apr 3, 2024
Merged via the queue into Kitware:master with commit fd961b0 Apr 3, 2024
6 checks passed
@williamjallen williamjallen deleted the max-project-visibility branch April 3, 2024 19:37
github-merge-queue bot pushed a commit that referenced this pull request Apr 4, 2024
This builds on top of the work done in #2115, and adds a new
`REQUIRE_AUTHENTICATED_SUBMISSIONS` configuration option which requires
regular users to enable authenticated submissions when creating or
editing projects. Instance administrators are able to override this
setting.

This should be merged after #2115.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants