Skip to content

Start the transition to longer scopes (#343)#348

Closed
A248 wants to merge 1 commit intomasterfrom
issue-343-longer-scopes
Closed

Start the transition to longer scopes (#343)#348
A248 wants to merge 1 commit intomasterfrom
issue-343-longer-scopes

Conversation

@A248
Copy link
Copy Markdown
Owner

@A248 A248 commented Apr 5, 2026

Prepares forward compatibility with 1.2.0, which is when we'll allow longer scope lengths at the database level. For now, the 32-scope length is checked at insertion time only and in the database schema, but future schema changes will allow retrieving scopes up to length 1024.

*Testing
An integration test is used to simulate operation of LibertyBans 1.1.x alongside a database that has already been upgraded to 1.2.0 (perhaps due to other LibertyBans instances).

Due to a bug in JUnit 5, we have to use method parameters and not constructor parameters in the forward compatibility integration test.

@A248 A248 linked an issue Apr 5, 2026 that may be closed by this pull request
2 tasks
@A248
Copy link
Copy Markdown
Owner Author

A248 commented Apr 5, 2026

For 1.2.0, we'll need to find a way to atomically update the database schema without affecting other running LibertyBans instances.

@A248 A248 added this to the 1.1.3 milestone Apr 6, 2026
@A248 A248 force-pushed the issue-343-longer-scopes branch 3 times, most recently from fbe9d8b to dbca962 Compare April 6, 2026 13:52
* Move scope length check to insertion only at application level.
  This gives flexibility to update the database schema in a later
  version, including views, to have a longer length (255). This
  change therefore prepares forward compatibility in 1.1.x.
* This tells us what will be needed for version 1.2.0. Perhaps
  an abandonment of views, or their temporary deletion? We'll
  have to find a solution that prevents intermediate drops.
  If transactional DDL exists, maybe we can use it.
@A248 A248 force-pushed the issue-343-longer-scopes branch from dbca962 to 7ed7741 Compare April 7, 2026 08:16
@A248
Copy link
Copy Markdown
Owner Author

A248 commented Apr 7, 2026

Changed into the 1.1.x-maintenance branch

@A248 A248 closed this Apr 7, 2026
@A248 A248 deleted the issue-343-longer-scopes branch April 7, 2026 08:27
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.

[Bug Report]: Scope length must be less than 32

1 participant