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

Feat/provisioning module #486

Merged
merged 18 commits into from
Apr 26, 2024
Merged

Feat/provisioning module #486

merged 18 commits into from
Apr 26, 2024

Conversation

gcharest
Copy link
Contributor

Summary | Résumé

  • Fix AWS group handling (removed domain from group as this field doesn't exist)
  • Added functions to
    • Retrieve groups from integrations
    • Find matching items in two lists based on matching key provided
    • Find items to add and to remove based on two lists and matching keys provided

@gcharest gcharest requested a review from a team April 26, 2024 21:04
@gcharest gcharest self-assigned this Apr 26, 2024
@gcharest gcharest enabled auto-merge (squash) April 26, 2024 21:05
Copy link

github-actions bot commented Apr 26, 2024

GitHub Action status on 692d6c1 generated by comment-failure-action

Source code security scan using Bandit

job url
null https://github.com/cds-snc/sre-bot/actions/runs/8854262423/job/24316943867

Lint, format and test code

No jobs failed 👍

Build containers CI

No jobs failed 👍

members_details = kwargs.get("members_details", True)

groups = []
match integration_source:
Copy link
Contributor

@sylviamclaughlin sylviamclaughlin Apr 26, 2024

Choose a reason for hiding this comment

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

So much better than several if statements!

return groups


# def get_matching_groups(source_groups, target_groups, matching_key):
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you want to keep the commented code here?

@gcharest gcharest disabled auto-merge April 26, 2024 21:12
assert not mock_google_list_groups_with_members.called


# @patch("modules.provisioning.groups.filter_tools.get_nested_value")
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need this commented code here?

Copy link

github-actions bot commented Apr 26, 2024

GitHub Action status on b43c133 generated by comment-failure-action

Lint, format and test code

job url
null https://github.com/cds-snc/sre-bot/actions/runs/8854344781/job/24317187481

Build containers CI

No jobs failed 👍

Copy link
Contributor

@sylviamclaughlin sylviamclaughlin left a comment

Choose a reason for hiding this comment

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

Excellent work! And love how many unit tests are there now!

@gcharest gcharest merged commit 8885f4d into main Apr 26, 2024
7 checks passed
@gcharest gcharest deleted the feat/provisioning_module branch April 26, 2024 21:21
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