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

DRep detail data doesn't match entered data #908

Closed
m-i-k-e opened this issue Apr 30, 2024 · 19 comments
Closed

DRep detail data doesn't match entered data #908

m-i-k-e opened this issue Apr 30, 2024 · 19 comments
Labels
❗️ Blocked 🐛 Bug Something isn't working

Comments

@m-i-k-e
Copy link

m-i-k-e commented Apr 30, 2024

Context & versions

staging.sanchonet

Loom video: https://www.loom.com/share/cd01691c84524bb7bc66e64c38347a1b?sid=0db69671-c576-44b2-8c40-2b076cc2131a

Steps to reproduce

  1. Become Drep
  2. Look at Drep list or drep detail page

Actual behavior

Information on page does not match info entered when Drep created

Expected behavior

Info should match

@m-i-k-e m-i-k-e added the 🐛 Bug Something isn't working label Apr 30, 2024
@pmbinapps
Copy link

Current data are mocked:

Image

@bosko-m
Copy link
Contributor

bosko-m commented May 23, 2024

Will be addressed once CIP-119 is resolved.

@bosko-m
Copy link
Contributor

bosko-m commented May 28, 2024

@l-br1 This might potentially go in a release as a known issue with appropriate message.

@m-i-k-e
Copy link
Author

m-i-k-e commented May 28, 2024

@l-br1 @bosko-m If we release this, we can watermark it as "Sample Data". I'm not a fan of this idea, I'd rather it worked, but if it can't:

image

@m-i-k-e
Copy link
Author

m-i-k-e commented May 29, 2024

@MSzalowski Could you please add some comments on the security of reading external files on the internet?

@MSzalowski
Copy link
Contributor

Sure 👍
We have many sources of truth around metadata-related things.
The best to depend on (from the technical side) is the db-sync which reflects the chain data - that is what we have currently for the governance actions.
We could fetch the metadata from the metadata url (provided by db-sync) on the frontend side but that results in potential security breach due to bypassing content security policy.
However, we have the sub-backend allowing validation of the metadata (we get the metadata url and hash from db sync -> then we parse the metadata provided under this url and validate it against the hash).

We can take the metadata from that validation service (we've done it before when we had the similar issue with the gov action metadata missing in db-sync but that significantly increased loading time of the page (n of gov actions more number of requests)) and display them in both gov actions (as they are missing there now) and in DRep directory even though we don't have the CIP-119 active.

@MSzalowski
Copy link
Contributor

@bosko-m We can provide the fix not involving the db-sync and cip-119 for that before the release, if only the release would be postponed for a day or two.

@bosko-m
Copy link
Contributor

bosko-m commented May 29, 2024

Thanks @MSzalowski , will have a decision the next day you are working.

@MSzalowski MSzalowski assigned MSzalowski and unassigned bosko-m May 29, 2024
@bosko-m
Copy link
Contributor

bosko-m commented May 30, 2024

@MSzalowski Please dont go with a workaround solution that doesnt imply CIP-119. According to @m-i-k-e suggestion, watermark the page with "Sample Data" text. @m-i-k-e is going to provide the design.
#908 (comment)

@m-i-k-e
Copy link
Author

m-i-k-e commented May 30, 2024

I've asked @kgrzonka to make some responsive designs in Figma

@m-i-k-e
Copy link
Author

m-i-k-e commented Jun 4, 2024

@m-i-k-e
Copy link
Author

m-i-k-e commented Jun 4, 2024

Still using mocked data 4 Jun.

image

@MSzalowski MSzalowski removed their assignment Jun 7, 2024
@pmbinapps
Copy link

OK NOW:

  • data shown on Details page

Image

Recheck on test-sancho...

@m-i-k-e
Copy link
Author

m-i-k-e commented Jun 11, 2024

Cannot become DRep, so blocked for testing

@bosko-m
Copy link
Contributor

bosko-m commented Jun 11, 2024

@m-i-k-e Why cant you become DRep?

@m-i-k-e
Copy link
Author

m-i-k-e commented Jun 11, 2024

@bosko-m "Metadata not verified" error. See this issue: #1011

All DRep testing is blocked, as I can't become one.

@MSzalowski
Copy link
Contributor

#1247 Unblocks this issue

@MSzalowski MSzalowski removed their assignment Jun 12, 2024
@m-i-k-e
Copy link
Author

m-i-k-e commented Jun 12, 2024

This works now, closing as I can see the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗️ Blocked 🐛 Bug Something isn't working
Projects
Status: Done
Development

When branches are created from issues, their pull requests are automatically linked.

4 participants