Skip to content
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

Dynamically lookup the source of a block #57

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Feb 15, 2023

When a user chooses to dispute a block, we now dynamically lookup the source of the block instead of getting the dispute URL from the query parameters. This is in preparation for an extension update that will necessitate dropping the newIssueUrl query parameter we had previously been relying on.

This is a temporary measure. A future update will restore the source for each block. At that time we can revert this change.

This should be comparing in exactly the same way as the extension. The configuration is fetched dynamically so it may be slightly more up-to-date than what the extension is using.

@socket-security
Copy link

Socket Security Pull Request Report

👍 No new dependency issues detected in pull request

Pull request report summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script confusion ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues
Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore [email protected] [email protected]

Powered by socket.dev

@Gudahtt Gudahtt force-pushed the dynamic-lookup-of-block-source branch 3 times, most recently from 88f88c1 to 0f7fb93 Compare February 16, 2023 22:17
@Gudahtt Gudahtt marked this pull request as ready for review February 16, 2023 22:20
@Gudahtt Gudahtt requested a review from a team as a code owner February 16, 2023 22:20
@Gudahtt

This comment was marked as resolved.

@Gudahtt

This comment was marked as resolved.

@Gudahtt Gudahtt force-pushed the dynamic-lookup-of-block-source branch 2 times, most recently from 3b93c99 to 29299d2 Compare February 17, 2023 17:50
When a user chooses to dispute a block, we now dynamically lookup the
source of the block instead of getting the dispute URL from the query
parameters. This is in preparation for an extension update that will
necessitate dropping the `newIssueUrl` query parameter we had
previously been relying on.

This is a temporary measure. A future update will restore the source
for each block. At that time we can revert this change.

This should be comparing in exactly the same way as the extension.
The configuration is fetched dynamically so it may be slightly more
up-to-date than what the extension is using.
@Gudahtt Gudahtt force-pushed the dynamic-lookup-of-block-source branch from 29299d2 to 747bb04 Compare February 17, 2023 21:46
@Gudahtt
Copy link
Member Author

Gudahtt commented Feb 17, 2023

Now that the Playwright tests have been merged, this PR has been updated with proper test coverage

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@Gudahtt Gudahtt merged commit e94fd9e into main Feb 17, 2023
@Gudahtt Gudahtt deleted the dynamic-lookup-of-block-source branch February 17, 2023 22:05
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.

2 participants