-
Notifications
You must be signed in to change notification settings - Fork 62
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
Warn users if a new group has the exact same name #280
Comments
Hey @aguzmant103, Is it alright if the off-chain group name is same as on-chain group name. |
Putting this on hold until we get feedback from UX team :) |
Updating description: "Warn users if a new group has the exact same name" This should apply for both onchain and offchain groups |
Interesting behavior: if I create an offchain group with the same name as another offchain group, the old group gets overwritten. It seems the groupID is based on the group name @vplasencia @0xjei is this expected? Woudl the expected behavior then be to NOT allow an offchain group with the same name as another offchain group?
|
The same doesnt'y seem to happen with onchain groups. If you try to create an onchain group that already exist with that name i.e. "test" and "test" it'll error out Even if I change the admin (account address) the error appears if there's a group with that name
|
Thank you @aguzmant103 for the detailed report. This is a strange and unexpected behaviour and should be addressed as soon as possible. In my opinion, groups with the same name SHOULD NOT exist as there will be identifier collisions leading to inconsistency and overlapping of groups. This problem can be solved by checking the ID of the new group against those already created at group creation time. Do you want to work on it @aguzmant103? |
Correct. I noticed that for on-chain groups you are calling the |
@0xjei shall this compare per adminID or across all adminIDs? In other words, if I create group "BandadaDevs" and you want to create the same group with the same name: |
i) OK, I'll try to explain myself better. If we aim to have an ecosystem of groups, it would make sense for the identifiers (IDs) and names of the groups to be unique. This is to avoid that if I want to pass a group to a person, I am forced to pass the ID instead of the name (imagine a scenario with X groups with the same name, it could lead to confusion or scam). Thus, the name would act as the first filter, while the ID would act as the second level (the opposite happens in the backend logic). Tell me if you understand what I mean. |
After discussing in team meeting: makes sense to prevent the creation of two identical group per admin |
@0xjei I'm going to return this to the backlog as I won't have bandwidth for now |
yes, makes sense - we can punt this back after the planning meeting accordingly to priorities <3 |
Hey @aguzmant103! I've just updated the issue description and unassigned you from this issue to allow others to take it. However, feel free to reassign it to yourself if you'd like to work on it. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have built many smart contracts so I can work on this issue |
Hey @SIDHARTH20K4 do you want me to assign this issue to you? |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have experience in Typescript and solidity. My skills in front-end development ensure efficient, user-friendly solutions, particularly when handling data validation. How I plan on tackling this issueFetch Existing Groups: On dashboard load, retrieve the list of both on-chain and off-chain groups created by the user. |
I am applying to this issue via OnlyDust platform. My background and how it can be leveraged. How I plan on tackling this issue. |
Hey @GoSTEAN would you like me to assign this issue to you? |
@vplasencia yes you can assign it to me |
Hey @GoSTEAN! I just assigned the issue to you. Let us know if you have any questions. |
Description
The idea of this issue is to warn the user if a new group contains the exact same name as another they created previously.
Then, every time a user wants to create a new off-chain or on-chain group, it should be checked if there is any other off-chain or on-chain group with the exact same name.
This functionality should be added to the dashboard, not the API or any other packages.
The text was updated successfully, but these errors were encountered: