-
Notifications
You must be signed in to change notification settings - Fork 578
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
Disable pds appview indexing #1645
Merged
Merged
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
48d45aa
rm indexing service
dholms 1100756
remove message queue & refactor background queue
dholms 3cc383c
wip
dholms 9514a04
remove all canProxyReadc
dholms 7e6bc46
finish cleanup
dholms c5291a5
clean up tests
dholms 631d757
fix up tests
dholms e95cee7
fix api tests
dholms 5c4fca3
fix build
dholms cce0efd
merge
dholms 6e7fae7
fix compression test
dholms df3ecc6
update image tests
dholms edc4914
merge main
dholms 00eca93
merge
dholms 0fd089a
fix dev envs
dholms 05add84
Merge branch 'disable-pds-appview-routes' into disable-pds-appview-in…
dholms acd5c20
build branch
dholms 9ce9a49
wip - removing labeler
dholms ec422b0
fix service file
dholms 182064b
remove kysely tables
dholms 1d89005
re-enable getPopular
dholms cdc36db
format
dholms 5ff5b42
cleaning up tests
dholms a6b4b4f
rm unused sharp code
dholms 3e2c743
Merge branch 'disable-pds-appview-routes' into disable-pds-appview-in…
dholms 8af6925
rm pds build
dholms f908d90
clean up tests
dholms 222377b
fix build
dholms 4a4f3cb
fix build
dholms c9994bd
migration
dholms be46a91
tidy
dholms d5965cc
merge main
dholms 0f9d7f7
Merge branch 'main' into disable-pds-appview-indexing
dholms 967c3a7
build branch
dholms 16c950f
tidy
dholms 2e09cc0
build branch
dholms c47f8b2
small tidy
dholms 7a4e435
merge
dholms e10ba81
dont build
dholms 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 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 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 |
---|---|---|
|
@@ -20,6 +20,20 @@ describe('agent', () => { | |
await close() | ||
}) | ||
|
||
const getProfileDisplayName = async ( | ||
agent: BskyAgent, | ||
): Promise<string | undefined> => { | ||
try { | ||
const res = await agent.api.app.bsky.actor.profile.get({ | ||
repo: agent.session?.did || '', | ||
rkey: 'self', | ||
}) | ||
return res.value.displayName ?? '' | ||
} catch (err) { | ||
return undefined | ||
} | ||
} | ||
|
||
it('upsertProfile correctly creates and updates profiles.', async () => { | ||
const agent = new BskyAgent({ service: server.url }) | ||
|
||
|
@@ -28,9 +42,8 @@ describe('agent', () => { | |
email: '[email protected]', | ||
password: 'password', | ||
}) | ||
|
||
const profile1 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile1.data.displayName).toBeFalsy() | ||
const displayName1 = await getProfileDisplayName(agent) | ||
expect(displayName1).toBeFalsy() | ||
|
||
await agent.upsertProfile((existing) => { | ||
expect(existing).toBeFalsy() | ||
|
@@ -39,8 +52,8 @@ describe('agent', () => { | |
} | ||
}) | ||
|
||
const profile2 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile2.data.displayName).toBe('Bob') | ||
const displayName2 = await getProfileDisplayName(agent) | ||
expect(displayName2).toBe('Bob') | ||
|
||
await agent.upsertProfile((existing) => { | ||
expect(existing).toBeTruthy() | ||
|
@@ -49,8 +62,8 @@ describe('agent', () => { | |
} | ||
}) | ||
|
||
const profile3 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile3.data.displayName).toBe('BOB') | ||
const displayName3 = await getProfileDisplayName(agent) | ||
expect(displayName3).toBe('BOB') | ||
}) | ||
|
||
it('upsertProfile correctly handles CAS failures.', async () => { | ||
|
@@ -62,8 +75,8 @@ describe('agent', () => { | |
password: 'password', | ||
}) | ||
|
||
const profile1 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile1.data.displayName).toBeFalsy() | ||
const displayName1 = await getProfileDisplayName(agent) | ||
expect(displayName1).toBeFalsy() | ||
|
||
let hasConflicted = false | ||
let ranTwice = false | ||
|
@@ -88,8 +101,8 @@ describe('agent', () => { | |
}) | ||
expect(ranTwice).toBe(true) | ||
|
||
const profile2 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile2.data.displayName).toBe('Bob') | ||
const displayName2 = await getProfileDisplayName(agent) | ||
expect(displayName2).toBe('Bob') | ||
}) | ||
|
||
it('upsertProfile wont endlessly retry CAS failures.', async () => { | ||
|
@@ -101,8 +114,8 @@ describe('agent', () => { | |
password: 'password', | ||
}) | ||
|
||
const profile1 = await agent.getProfile({ actor: agent.session?.did || '' }) | ||
expect(profile1.data.displayName).toBeFalsy() | ||
const displayName1 = await getProfileDisplayName(agent) | ||
expect(displayName1).toBeFalsy() | ||
|
||
const p = agent.upsertProfile(async (_existing) => { | ||
await agent.com.atproto.repo.putRecord({ | ||
|
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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
File renamed without changes.
This file contains 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 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 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 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
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.
Can we nix this code?
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.
nixed the pds-only dev-env & switched this code to insert the labels into the appview 👌