apps icon indicating copy to clipboard operation
apps copied to clipboard

Display errors on the Society page

Open anaelleparity opened this issue 1 year ago • 3 comments

  • I'm submitting a ...
  • [X] Bug report
  • [ ] Feature request
  • [ ] Support request
  • [ ] Other
  • What is the current behavior and expected behavior?

After the latest runtime upgrade on Kusama introducing Society V2, the Society page on Polkadot-JS Apps is no longer displaying on-chain data about members and throwing an error on the tab for suspended members.

Screenshot 2023-11-08 at 12 49 35 pm Screenshot 2023-11-08 at 12 49 16 pm
  • What is the motivation for changing the behavior?

The interface does not reflect the current state of the Kappa Sigma Mu Society and Society members can no longer interact with the Society pallet.

  • Please tell us about your environment:
  • Version: -

  • Environment: MacOs

    • [ ] Node.js
    • [X] Browser
    • [ ] Other (limited support for other environments)
  • Language:

    • [ ] JavaScript
    • [ ] TypeScript (include tsc --version)
    • [X] Other

anaelleparity avatar Nov 08 '23 11:11 anaelleparity

Current on-chain info: Screenshot 2023-11-08 at 1 02 45 pm

anaelleparity avatar Nov 08 '23 12:11 anaelleparity

Hey, @anaelleparity, thank you for opening this issue!

We are having similar problems with the society website and I'm trying to fix it.

Apparently now members() and suspendedMembers() functions have been both overloaded with an optional parameter, in addition to the original behavior of returning a list of all members, now we can lookup for a single member information. It also returns a different data structure, including the new variable rank.

I believe we are also gonna need to update the api package to reflect these changes, most likely this file.

@jacogr should I open an issue there too?

laurogripa avatar Nov 27 '23 05:11 laurogripa

Ok, yeah, the regular query api worked fine for me, but the api-derive is throwing some weird errors.

Just opened an issue on the api repo: https://github.com/polkadot-js/api/issues/5766

laurogripa avatar Nov 29 '23 20:11 laurogripa