-
Notifications
You must be signed in to change notification settings - Fork 1
feat(projection): update projection store to use source and perspective #723
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
feat(projection): update projection store to use source and perspective #723
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| expect(Object.keys(params)).toHaveLength(1) | ||
| expect(params[`__ids_${projectionHash}`]).toBeDefined() | ||
| expect(params[`__ids_${projectionHash}`]).toHaveLength(4) | ||
| expect(params[`__ids_${projectionHash}`]).toHaveLength(2) |
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.
Two because we are no longer querying for drafts and published versions of each document ID.
bc18070 to
45393e1
Compare
45393e1 to
844eb05
Compare
844eb05 to
84bbc5d
Compare
84bbc5d to
1e7d4e5
Compare
1e7d4e5 to
01569a5
Compare
01569a5 to
b3a3482
Compare
2f4fde3 to
6e266b1
Compare
c5d5f98 to
caf89f8
Compare
6e266b1 to
1352f30
Compare
caf89f8 to
bb1eac4
Compare
1352f30 to
97d6f8b
Compare
97d6f8b to
6845df6
Compare
binoy14
left a comment
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.
Not 100% sure what's going on but nothing stands out
Merge activity
|

FIXES SDK-546
FIXES SDK-739
Description
Projections never worked particularly well with perspectives because they used the "raw" perspective and manually overlaid a draft version over a published version. This isn't necessary with perspectives, so that functionality is added. It's also required for projections that do joins via references -- "raw" won't properly resolve draft versions of referenced documents.
I've also used the opportunity to migrate projections to sources as well as perspectives, so you'll see some new action binders here.
To avoid a breaking change, there were some changes to the "status" query. I considered omitting it and leaving this to be a breaking change, but the status allows us to maintain parity with what Studio does (see screenshot)
What to review
I'm most concerned about the status query stuff.
Testing
Added tests for new functions and updating existing ones where required. E2E tests are coming in a following PR. I can't get the Webkit E2E test to work, but it's failing on "unauthenticated" because of a cookie dialogue, so that needs to be fixed separately.
You can also ref the old behavior here (note that the reference is "published" and the value doesn't change when we change perspectives):
Against the new behavior here:

Fun gif