Skip to content

Auto-assign distinct project ids on project insert - #58

Merged
labkey-martyp merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_project_id_per_row
Sep 23, 2026
Merged

labkey-martyp merged 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_project_id_per_row

Conversation

@labkey-martyp

Copy link
Copy Markdown
Contributor

Rationale

New projects could not be entered through the Import Data page, and multi-row imports gave every project the same Project Id. The Import Single form treated the blank Project Id as a required field and blocked submit, even though the trigger assigns it; that trigger then reused one id for every row in an import, which breaks updates and deletes by key.

Related Pull Requests

None.

Changes

  • Hide Project Id from the insert and update forms so the trigger can assign it.
  • Assign each imported row its own Project Id.

The Import Single form blocked submit on the blank required Project Id, and multi-row imports gave every row the same id.

@labkey-martyp labkey-martyp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

tests clean

@labkey-martyp
labkey-martyp merged commit 7461428 into release26.7-SNAPSHOT Sep 23, 2026
4 checks passed
@labkey-martyp
labkey-martyp deleted the 26.7_fb_project_id_per_row branch September 23, 2026 22:07
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