Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Factor out logic for modifying site config#62768

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/simplify-3
May 21, 2024
Merged

chore: Factor out logic for modifying site config#62768
varungandhi-src merged 1 commit into
mainfrom
vg/simplify-3

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Multiple integration tests have essentially the same code for
modifying the site config, and then resetting it to it original
state. Refactor that out into a common method.

Test plan

Covered by existing tests

@cla-bot cla-bot Bot added the cla-signed label May 17, 2024
Comment thread dev/gqltest/search_test.go Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is the main 'logic' change, where we're using the global client instead of the client passed in as the argument. I can make the logic more complex to accommodate the locally passed client, but strictly speaking, all these tests run serially, so I think this is OK?

@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels May 17, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) May 17, 2024 15:22
Multiple integration tests have essentially the same code for
modifying the site config, and then resetting it to it original
state. Refactor that out into a common method.
@varungandhi-src

Copy link
Copy Markdown
Contributor Author

cc @stefanhengl @pjlast could you review/approve?

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@varungandhi-src varungandhi-src merged commit 7347853 into main May 21, 2024
@varungandhi-src varungandhi-src deleted the vg/simplify-3 branch May 21, 2024 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants