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

Support for drupal data sync #617

Merged
merged 21 commits into from
Aug 14, 2024
Merged

Support for drupal data sync #617

merged 21 commits into from
Aug 14, 2024

Conversation

jmcarson
Copy link
Collaborator

Add audit code and management command for syncing user, research center and partner group data from the gregor drupal site to the gregor django site.

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 99.44506% with 5 lines in your changes missing coverage. Please review.

Project coverage is 94.89%. Comparing base (42b5669) to head (a579a3f).
Report is 22 commits behind head on main.

Files Patch % Lines
gregor_django/gregor_anvil/audit.py 86.11% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #617      +/-   ##
==========================================
+ Coverage   94.18%   94.89%   +0.71%     
==========================================
  Files         124      130       +6     
  Lines        5693     6588     +895     
==========================================
+ Hits         5362     6252     +890     
- Misses        331      336       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amstilp
Copy link
Contributor

amstilp commented Jul 9, 2024

@jmcarson I added a "member_group" and "uploader_group" fields to the ResearchCenter and PartnerGroup models. When importing new RC/PartnerGroups, you can leave them blank. When updating existing records, don't change the member/upload groups that are already associated (if any).

amstilp and others added 3 commits July 9, 2024 15:22
Both this branch and a previous branch that I merged in added a 0024
migration, so Django didn't know which to apply. Delete the 0024
migration from this branch and regenerate it following the 0024
migration that was merged in.
Once we start pulling in all user accounts and associating them with
a ResearchCenter or PartnerGroup, the tables will get long. Move them
into accordion dropdowns like the uploaders and data access lists.
@amstilp
Copy link
Contributor

amstilp commented Jul 10, 2024

@jmcarson I also want to verify that we'll get an email whenever a ResearchCenter or PartnerGroup is added or updated. Can you check if that's the case, and if not, add it?

@jmcarson jmcarson merged commit 9015742 into main Aug 14, 2024
10 checks passed
@jmcarson jmcarson deleted the feature/drupal-data-sync branch August 26, 2024 17:57
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