Repository navigation
server: add shared objects to provider share updates - #97
Merged
Merged
Conversation
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
September 16, 2026 23:02
2f342b5 to
3723e47
Compare
littlegrasscao
marked this pull request as ready for review
September 17, 2026 23:26
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
September 18, 2026 20:14
488019c to
fb2e147
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
September 25, 2026 22:18
619cd87 to
642f916
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
September 25, 2026 22:27
642f916 to
5a1302f
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
September 25, 2026 22:32
5a1302f to
21bdfca
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
September 25, 2026 22:37
21bdfca to
c245c38
Compare
zhu-tom
added this pull request to stack #111
October 1, 2026 18:55
littlegrasscao
removed this pull request from stack #111
October 1, 2026 20:19
littlegrasscao
added this pull request to stack #112
October 1, 2026 20:20
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 2, 2026 16:13
c245c38 to
ac8e380
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
October 5, 2026 20:57
459d7ef to
f91ffa9
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 5, 2026 21:25
f91ffa9 to
80683f5
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 5, 2026 23:59
80683f5 to
025625f
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 6, 2026 00:05
025625f to
c76e04c
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 6, 2026 00:14
c76e04c to
4260b9f
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
October 9, 2026 23:35
64ad59d to
19ddd3f
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
October 13, 2026 23:54
dc3c084 to
65393c0
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 14, 2026 00:56
65393c0 to
7f85ceb
Compare
zhu-tom
reviewed
Oct 14, 2026
zhu-tom
approved these changes
Oct 14, 2026
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
2 times, most recently
from
October 15, 2026 16:46
64279ba to
1535e31
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
5 times, most recently
from
October 20, 2026 00:05
1f2039a to
0cf3cc8
Compare
littlegrasscao
force-pushed
the
server/split2/08-shared-objects
branch
from
October 21, 2026 17:01
0cf3cc8 to
4d4f55e
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
SharedDataObjectEntitypersistence andADD/REMOVEobject updates to the providerPATCH /shares/{share}APICatalogConnector.resolveAssetas the caller, checks its declared type, and records the catalog's asset id and table format. The catalog checks that the caller may select from itsharedAsdefaults to the name without its catalog; aliases and source names are unique within a share, and a schema and tables under it cannot both be sharedsharedAsor by catalog name, and must match its typeGET /shares/{share}?include_shared_data=truereturns the objects; deleting a share deletes themUpdateShare: every remove runs, then every add, then the share's field changes, in one database transaction. If any of them fails, the transaction rolls back and the share is unchangedupdatesTesting
mvn clean install: 94 tests passedShareAdminServiceTest: adding and removing tables and schemas, default and explicit aliases, unsupported types, duplicate aliases and sources, schema and table conflicts, and removes that need a type and an existing objectShareUpdateTransactionTest:ShareUpdateConcurrencyTest: adding a schema and a table under it at the same time leaves only one of them (the other is 409), and an update racing a delete gets 200 or 404Stacked on #96.