Skip to content

Fixes the issue where fullname was required #224

Merged
theyoyojo merged 1 commit into
underground-software:masterfrom
krishjainx:krishjainx-fix-221
Feb 10, 2025
Merged

Fixes the issue where fullname was required #224
theyoyojo merged 1 commit into
underground-software:masterfrom
krishjainx:krishjainx-fix-221

Conversation

@krishjainx

Copy link
Copy Markdown
Contributor

Fixes #221. This fixes the issue where fullname was required even though the rest of the codebase assumes it can be NULL.

One limitation is that if the test script is run twice, it will still hit a UNIQUE constraint failed: user.student_id error, since test.sh tries to create a user with student_id = 1234, which already exists from the first run. This happens because the database persists between runs in the Podman volume. Clearing the volume before running the tests would prevent duplicate users from previous runs.

That said, this change should at least resolve the NOT NULL constraint failed: user.fullname issue!

@theyoyojo

theyoyojo commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

Does not pass tests. Did you run them?

@theyoyojo

Copy link
Copy Markdown
Contributor

Please squash this into a single commit. Then it is ready to merge

…he codebase assumes it can be NULL

fixes #221. This fixes the issue where fullname was required even though the rest of the codebase assumes it can be NULL.

One limitation is that if the test script is run twice, it will still hit a UNIQUE constraint failed: user.student_id error, since test.sh tries to create a user with student_id = 1234, which already exists from the first run. This happens because the database persists between runs in the Podman volume. Clearing the volume before running the tests would prevent duplicate users from previous runs.

That said, this change should at least resolve the NOT NULL constraint failed: user.fullname issue!

@theyoyojo theyoyojo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@theyoyojo theyoyojo merged commit 80beeb3 into underground-software:master Feb 10, 2025
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.

Fix support for null fullname in orbit db

2 participants