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

fix: Well formated descriptions is not visible #10292

Merged
merged 3 commits into from
May 17, 2024

Conversation

Jarsen136
Copy link
Contributor

@Jarsen136 Jarsen136 commented May 14, 2024

Thank you for your contribution to the Koda - Generative Art Marketplace.

👇 __ Let's make a quick check before the contribution.

PR Type

  • Bugfix

Needs QA check

  • @kodadot/qa-guild please review

Context

Did your issue had any of the "$" label on it?

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

image

@Jarsen136 Jarsen136 requested a review from a team as a code owner May 14, 2024 11:23
@Jarsen136 Jarsen136 requested review from daiagi and hassnian and removed request for a team May 14, 2024 11:23
Copy link

netlify bot commented May 14, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit dbbefa2
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/66467777d29b120008c9ef96
😎 Deploy Preview https://deploy-preview-10292--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JustLuuuu
Copy link
Member

Can we please also get a release before the drop? So description is not missing?

@Jarsen136
Copy link
Contributor Author

Can we please also get a release before the drop? So description is not missing?

Sure yes

Co-authored-by: Hassnian <44554284+hassnian@users.noreply.github.com>
Copy link
Contributor

@hassnian hassnian left a comment

Choose a reason for hiding this comment

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

as a quick fix code LGTM

what's the reason of metadata being defined and meta being null ?

@Jarsen136
Copy link
Contributor Author

but can't we fix this on the indexer side what's the reason of metadata being defined and meta being null ?

I'm not sure. Is it possible to fix this case also on the indexer side? @vikiival

@vikiival
Copy link
Member

Already fixed

Screenshot 2024-05-14 at 14 07 20

@vikiival
Copy link
Member

what's the reason of metadata being defined and meta being null ?

Very slow image worker
cc @preschian

Screenshot 2024-05-14 at 14 15 24

@Jarsen136
Copy link
Contributor Author

Already fixed

Just FYI, this PR also fixed the missing meta issue on base chain. #10279

https://deploy-preview-10292--koda-canary.netlify.app/base/collection/0x3c93690bbe585475fdfadab3f59b4604008c7ac4
image

@preschian
Copy link
Member

what's the reason of metadata being defined and meta being null ?

Very slow image worker cc @preschian

In this case, I think it's better to fix it on the indexer side. Retry the fetch on this one metadata being defined and meta being null. Add max retry or at least increase timeout.

Because it's expected to be slow at the first request, fxhash has good documentation about the downside of IPFS: https://docs.fxhash.xyz/decentralised-storage-ipfs-and-onchfs#7f156ce9fbbd4b239de17e7e418b27d5. It's recommended to read about why it's slow.

FYI, the reason image workers exist is to speed up that downside. On the second request, it should be faster.

Copy link

codeclimate bot commented May 16, 2024

Code Climate has analyzed commit dbbefa2 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link

sonarcloud bot commented May 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Jarsen136
Copy link
Contributor Author

Jarsen136 commented May 17, 2024

what's the reason of metadata being defined and meta being null ?

Very slow image worker cc @preschian

In this case, I think it's better to fix it on the indexer side. Retry the fetch on this one metadata being defined and meta being null. Add max retry or at least increase timeout.

Because it's expected to be slow at the first request, fxhash has good documentation about the downside of IPFS: https://docs.fxhash.xyz/decentralised-storage-ipfs-and-onchfs#7f156ce9fbbd4b239de17e7e418b27d5. It's recommended to read about why it's slow.

FYI, the reason image workers exist is to speed up that downside. On the second request, it should be faster.

After adding retry logic, can we guarantee that every collection will have meta data returned?
I suggest merging the current PR to fix all related issues first. And then we gradually fix the missing meta issues one by one on the indexer side.
We could do both of the two solutions.
wdyt?
@vikiival @preschian

@preschian
Copy link
Member

I suggest merging the current PR to fix all related issues first

yes, please

@preschian
Copy link
Member

After adding retry logic, can we guarantee that every collection will have meta data returned?

If the problem is because of timeout while fetching the ipfs gateway, it should be fixed with that

@Jarsen136 Jarsen136 added this pull request to the merge queue May 17, 2024
Merged via the queue into kodadot:main with commit 90848dc May 17, 2024
19 checks passed
@Jarsen136 Jarsen136 deleted the issue-10291 branch May 17, 2024 12:29
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.

Well formated descriptions is not visible Base collections on Koda: missing description
7 participants