-
Notifications
You must be signed in to change notification settings - Fork 1
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
[IDP-1183, partial] Revise "external groups" API endpoints #358
Merged
forevermatt
merged 38 commits into
develop
from
feature/IDP-1183-sync-google-sheet-to-external-groups
Sep 5, 2024
Merged
[IDP-1183, partial] Revise "external groups" API endpoints #358
forevermatt
merged 38 commits into
develop
from
feature/IDP-1183-sync-google-sheet-to-external-groups
Sep 5, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To do so... 1. Run `docker compose run --rm externalgroupssync bash` 2. In that, run `~/.aws-lambda-rie/aws-lambda-rie ./personnel-sync` 3. In other terminal (on your host), run another `docker compose exec externalgroupssync bash` 4. In that, run `curl -XPOST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{}'` each time you want to invoke the personnel-sync.
As an example, rather than having `["prefix-group1", "prefix-group2"]`, it will now have `"prefix-group1,prefix-group2"` as the value for the external groups API endpoints (both incoming, such as for updates, and outgoing, such as in the list endpoint's response). This makes it easier to sync this data with a spreadsheet (e.g. a Google Sheet).
This is intended to be temporary.
This avoids the need to include the email address in the URL path, which personnel-sync does not currently support.
briskt
approved these changes
Sep 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I offer a couple suggestions for documentation and naming. Take 'em or leave 'em.
It is not doing a sync with any external system. It is merely updating records based on the given data.
Quality Gate passedIssues Measures |
forevermatt
deleted the
feature/IDP-1183-sync-google-sheet-to-external-groups
branch
September 5, 2024 14:14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IDP-1183 Sync prefixed-groups from Google Sheet to ID Broker's
groups_external
fieldAdded
POST
behavior more typical, as you might normally POST to an endpoint for a type of resource (without a unique identifier), rather than posting to a specific resource.Changed (non-breaking)
Feature PR Checklist
make composershow
make psr2