-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix: Added organization membership sample data for API_ADMINISTRATOR_USER #3208
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
Conversation
…ons while loading sample data
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
…DMINISTRATOR_USER-on-sample-DB-import
WalkthroughThe pull request updates the data insertion process within the Changes
Sequence Diagram(s)sequenceDiagram
participant F as insertCollections
participant E as Environment Variables
participant D as Database
participant L as Logger
F ->> E: Retrieve Admin Email
E -->> F: Return email value / undefined
alt Email is provided
F ->> D: Query user by email
D -->> F: Return user record / not found
alt User exists
F ->> D: Create organization membership entries
else No user found
F ->> L: Log error "User not found"
end
else Email not provided
F ->> L: Log error "Email not defined"
end
Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop-postgres #3208 +/- ##
====================================================
- Coverage 43.90% 43.85% -0.06%
====================================================
Files 455 455
Lines 33644 33684 +40
Branches 664 664
====================================================
Hits 14772 14772
- Misses 18868 18908 +40
Partials 4 4 ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 3
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
src/utilities/loadSampleData.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Run tests for talawa api
- GitHub Check: Analyse Code With CodeQL (typescript)
3f1e458
into
PalisadoesFoundation:develop-postgres
What kind of change does this PR introduce?
This PR will add the
organization_memberships
records forAPI_ADMINISTRATOR_USER_EMAIL_ADDRESS
user.Issue Number:
Fixes #3178
Snapshots/Videos:

If relevant, did you update the documentation?
N/A
Summary
Does this PR introduce a breaking change?
No
Checklist
CodeRabbit AI Review
Test Coverage
Other information
N/A
Have you read the contributing guide?
Yes
Summary by CodeRabbit