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

Hum 50 #2667

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Hum 50 #2667

wants to merge 2 commits into from

Conversation

KacperKoza343
Copy link
Contributor

task HUM-50

Copy link

vercel bot commented Oct 22, 2024

@KacperKoza343 is attempting to deploy a commit to the HUMAN Protocol Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@dnechay dnechay left a comment

Choose a reason for hiding this comment

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

Approach lgtm, 2 points

  1. We should apply the same logic to oracles table queries (now you can spawn multiple requests by selecting in job type filter)
  2. Make sure your git history is clean before we merge
  3. Do we need this PR? It seems to be part of Hum 40 address validation and debounce for Search escrow address #2661

@@ -99,10 +102,18 @@ export function createFetcher(defaultFetcherConfig?: {
: fetcherOptions.options;
if (fetcherOptions.authenticated) {
fetcherOptionsWithDefaults = appendHeader(fetcherOptionsWithDefaults, {
Authorization: `Bearer ${browserAuthProvider.getAccessToken() ?? ''}`,
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
Copy link

Choose a reason for hiding this comment

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

Wouldn't it be better if we change the rule globally in order to allow not only strings, but also booleans, numbers and null/undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with that

Copy link

Choose a reason for hiding this comment

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

@KacperKoza343 could you please do it in this PR?

@KacperKoza343
Copy link
Contributor Author

Approach lgtm, 2 points

  1. We should apply the same logic to oracles table queries (now you can spawn multiple requests by selecting in job type filter)
  2. Make sure your git history is clean before we merge
  3. Do we need this PR? It seems to be part of Hum 40 hum 50 #2661
  1. I will add it there
  2. Done
  3. Yes, that's right, but HUM-40 also have debounce so I added this one separately to have a better ability to test it, with debounce it's hard to see cancelled requests

@dnechay
Copy link

dnechay commented Oct 25, 2024

@KacperKoza343

so I added this one separately to have a better ability to test it

That's true, but you always can comment some code in your working branch or alter git history for testing purpose.

If we keep two separate PRs and merge this one first - it will create unnecessary difficulties for you in the second one with resolving conflicts.

Up to you in the end

@KacperKoza343
Copy link
Contributor Author

@KacperKoza343

so I added this one separately to have a better ability to test it

That's true, but you always can comment some code in your working branch or alter git history for testing purpose.

If we keep two separate PRs and merge this one first - it will create unnecessary difficulties for you in the second one with resolving conflicts.

Up to you in the end

Yes, I will add new signal here

@dnechay dnechay self-requested a review October 25, 2024 15:03
Copy link

@dnechay dnechay left a comment

Choose a reason for hiding this comment

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

Looks good, one comment about commented linter

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