Zondax / namadexer

Namada indexer
39 stars 57 forks source link

Views include too much data #186

Closed opsecx closed 4 months ago

opsecx commented 7 months ago

The new views include transactions regardless of completion status. Made a pr to fix, note there may be some revision history issues in it, I hope I got it correct now.

:link: zboto Link

opsecx commented 7 months ago

https://github.com/Zondax/namadexer/pull/185

opsecx commented 7 months ago

Do we need to do something similar for the rest of the views? (and maybe improve on any additional data that would be useful?)

rllola commented 7 months ago

Yes, we probably need to do it on the other views.

opsecx commented 7 months ago

I'm wondering a bit if this is the ideal way, or if it would be better to rework so all tx are included, but with a new column indicating either success or fail of tx. Not sure what would be ideal

rllola commented 7 months ago

I was wondering the same things. I am in favor of having a new column like you propose. Having all the information is better than having something implicit. You can also have a filter when querying your view if you only want the successful transaction but doing it the other way is a bit more work.

opsecx commented 7 months ago

Agree, probably good to include all, but necessary with the additional column. But maybe then a human readable format rather than just return-code

rllola commented 7 months ago

I will try to see if I can find the error that match the return code. 0 is obviously success but for the rest I don't have this information.

opsecx commented 7 months ago

Yes was wondering about those.. Think it's mainly 0 and 1 in use, but better to have it complete.

opsecx commented 6 months ago

I do feel like the data model is constantly changing far too much. views changing is less problematic, but still problematic from a usecase-perspective when compatibility breaks (like it will again when the above-mentioned improvement is introduced - and in subtle ways even for those not paying attention here on git). tables changing (like one of the latest prs) that requires a resync really are bothersome. resyncing my indexer again now for idk which time

ainhoa-a commented 4 months ago

This indexer is no longer being maintained by request of heliax/namada team and it will be archived soon.