-
Notifications
You must be signed in to change notification settings - Fork 6
Dev #94
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
Merged
Merged
Dev #94
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
93dfdb5
chore: add CLAUDE.md to .gitignore
pparage e573d5f
fix(security): read SECRET_KEY and SECURITY_PASSWORD_SALT from env vars
pparage 04f99aa
fix(security): add ownership check on schema edit and delete routes
pparage ddf1980
fix(config): use postgresql:// scheme in production sample (SQLAlchem…
pparage 6dfbc90
fix(security): harden schema permission decorator and add org_id serv…
pparage 232a087
feat(schema): two-step delete with confirmation page (closes #4)
pparage b4c375b
fix(schema): harden delete flow — CSRF validation, 404 guards, owner-…
pparage 23f9316
feat(schema): add schema fork with provenance tracking (closes #3)
pparage a6f8755
chore(deps): update Python and JS dependencies to fix CVEs
pparage 15c4726
chore(release): bump version to 0.18.0 and update CHANGELOG
pparage 099fd3e
fix: address post-review findings before merge
pparage b2b476f
fix: replace deprecated datetime.utcnow() and API debug prints
pparage 4d24194
chore(release): update CHANGELOG for v0.18.0 final items
pparage 4b19f85
fix: replace stray print(e) with logger.error in objectbp.py
pparage ef38aca
fix(ui): Bootstrap 4→5 migration — data-bs-* attributes and btn-close
pparage 7c3299b
feat(ui): upgrade to CodeMirror 6 with esbuild bundle
pparage 3c28301
fix(ui): replace popper.js v1 with @popperjs/core v2 for Bootstrap 5
pparage d87ad7b
fix(ui): fix navbar dropdown clipping for Bootstrap 5
pparage 2a3a006
fix(ux): show helpful messages when user has no organizations
pparage 008612f
fix(ui): replace bootstrap-select with native Bootstrap 5 form-select
pparage 5146bbe
fix(ui): clean up edit_collection.html for Bootstrap 5
pparage d68085f
fix(ui): complete Bootstrap 4→5 migration across all templates
pparage 2febfca
ui: Bootstrap 5 polish, accessibility fixes, and empty-state messages
pparage c38fd55
refactor: address PR #94 review feedback
cedricbonhomme 4360a76
fix(ui): wrap home page recent-contribution lists in list-group
cedricbonhomme 58219b1
ci: fix flake8 failures and update Python matrix to 3.11+
cedricbonhomme d9a9c8c
ci: keep only Python 3.11 in matrix pending flake8 bump
cedricbonhomme e1d98c0
ci: set minimal config defaults for the testing environment
cedricbonhomme aadf5d4
ci: seed SECRET_KEY and SECURITY_PASSWORD_SALT in the test config
cedricbonhomme d1f376e
ci: use direct assignment for test config (setdefault was a no-op)
cedricbonhomme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
migrations/versions/c3f2a1b4e5d6_add_forked_from_id_to_schema.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| """add forked_from_id to schema | ||
|
|
||
| Revision ID: c3f2a1b4e5d6 | ||
| Revises: 44015f761a68 | ||
| Create Date: 2026-04-15 15:30:00.000000 | ||
|
|
||
| """ | ||
| import sqlalchemy as sa | ||
| from alembic import op | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "c3f2a1b4e5d6" | ||
| down_revision = "44015f761a68" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.add_column( | ||
| "schema", | ||
| sa.Column("forked_from_id", sa.Integer(), nullable=True), | ||
| ) | ||
| op.create_foreign_key( | ||
| "fk_schema_forked_from_id", | ||
| "schema", | ||
| "schema", | ||
| ["forked_from_id"], | ||
| ["id"], | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_constraint("fk_schema_forked_from_id", "schema", type_="foreignkey") | ||
| op.drop_column("schema", "forked_from_id") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| from datetime import datetime | ||
| from datetime import timezone | ||
|
|
||
|
|
||
| def utcnow_naive() -> datetime: | ||
| """Current UTC time as a naive datetime. | ||
|
|
||
| The DateTime columns in this project are declared without timezone=True, | ||
| so tz-aware values would fail to insert. Strip tzinfo after computing in | ||
| UTC; this is the non-deprecated replacement for datetime.utcnow(). | ||
| """ | ||
| return datetime.now(timezone.utc).replace(tzinfo=None) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The new self-referential foreign key on
schema.forked_from_idis created without anondeleteaction, so PostgreSQL keeps the defaultNO ACTIONbehavior. After this migration, deleting an original schema that has at least one fork will raise an integrity error and make the new/schema/delete/<id>flow fail with a 500 at commit time. This blocks a core operation for any schema that has been forked.Useful? React with 👍 / 👎.