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

Release 6.8.0 - Add field and API endpoint for external groups (i.e. not from the HR system) #357

Closed
wants to merge 48 commits into from

Conversation

forevermatt
Copy link
Contributor

IDP-1176 Add groups_external field to ID Broker's database
IDP-1182 Provide a way to set user.groups_external


Added

  • Add groups_external field to User
  • Add an API endpoint (with documentation and tests) for updating a prefix-specific subset of a User's list of external groups
  • Revise Makefile to update base models after every composer update
  • Add a place/reminder to paste the YouTrack issue's ID and title in PRs
  • Add phpMyAdmin container for testdb

Changed (non-breaking)

  • Include groups_external values in a User's member list during login
  • Separate the PR template "Changed" section for breaking vs. non-breaking
  • Simplify the wording of the checklist to simply say "Tests...", not specifically "Unit tests..."

Fixed

  • Update the base models (using our current version of Yii). Insignificant changes.
  • Extract User->getMemberList() method

forevermatt and others added 30 commits August 13, 2024 11:53
Occasionally Yii updates their template for Active Record model files.
It seems more helpful to see the effects of those changes in that same
PR (where Yii was updated), rather than seeing them in a later,
unrelated PR.

Updating the base models only takes around 10 seconds, so it seems like
a minimal time cost (percentage-wise) that we're adding to each composer
update call.
Update base models, and do so with each "make composerupdate"
PHP's `explode()` returns an array with an empty string if the given
string is empty, but we do not want to add that to the `members` list.
This is easily obtained (with the ID as a link, even) by clicking the
"Copy ID and summary to clipboard" icon beside a YouTrack issue's ID
link, near the top-left of the page when viewing an issue in a
sufficiently-wide browser window.
This helps reduce the complexity of the `User->fields()` method, which
was getting overly complicated.
…uest-template

Refine ID Broker's pull-request template
@forevermatt forevermatt requested a review from a team August 21, 2024 19:18
Copy link

sonarcloud bot commented Aug 21, 2024

@forevermatt
Copy link
Contributor Author

This is NOT ready to release. The new API endpoint will change.

@forevermatt forevermatt deleted the release/6.8.0 branch August 28, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant