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

Encode/decode social volume words to/from www form #4438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IvanIvanoff
Copy link
Member

@IvanIvanoff IvanIvanoff commented Oct 22, 2024

Changes

Otherwise words like $43,000 are considered as 2 words as the comma is
used for a separator. Encoding on our end and metricshub decoding on
its end will fix this problem.

This needs to be deployed together with the metricshub changes.

Ticket

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have tried to find clearer solution before commenting hard-to-understand parts of code
  • I have added tests that prove my fix is effective or that my feature works

@IvanIvanoff IvanIvanoff force-pushed the encode-decode-social-volume-words branch from 2dc4667 to 32e13a3 Compare October 22, 2024 09:03
Otherwise words like $43,000 are considered as 2 words as the comma is
used for a separator. Encoding on our end and metricshub decoding on
its end will fix this problem.
@IvanIvanoff IvanIvanoff force-pushed the encode-decode-social-volume-words branch from 32e13a3 to e09b2a6 Compare October 22, 2024 09:06
"2024-09-28T00:00:00Z" => 373,
"2024-09-29T00:00:00Z" => 487,
"2024-09-30T00:00:00Z" => 323
},
"eth or nft" => %{
URI.encode_www_form("eth or nft") => %{
Copy link
Contributor

Choose a reason for hiding this comment

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

We return from the API the keys as www-form-urlencoded strings ? Does this mean that the frontend should change their logic also ?

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