-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$125] Tag - Error occurs when trying to add a tag named "some" #50023
Comments
Triggered auto assignment to @twisterdotcom ( |
We think that this bug might be related to #wave-collect - Release 1 |
@twisterdotcom FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-10-01 20:48:11 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Error occurs when trying to add a tag named "some" What is the root cause of that problem?We are getting are tags list from here and when it's empty we are returning an array but tags list is supposed to be an Lines 292 to 295 in cba1457
And here when it's an empty array we are using an incorrect method to check
What changes do you think we should make in order to solve the problem?We can return Lines 292 to 295 in cba1457
We should also check for other places where we have this issue and fix it. We should also fix type errors that comes from this change. What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The system returns an error stating 'A tag with this name already exists' even though no tag named 'some' is present, which might indicate a system error. What is the root cause of that problem?In App/src/pages/workspace/tags/WorkspaceCreateTagPage.tsx Lines 50 to 51 in cba1457
We check if However, when we create a new workspace, the it will only be updated to an object when a tag is created. And What changes do you think we should make in order to solve the problem?
Update
to else if (!Array.isArray(tags) && tags?.[tagName]) { or
What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~021841480841839544675 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Upwork job price has been updated to $125 |
I believe this may be a backend issue. The tags are supposed to be App/src/libs/actions/Policy/Tag.ts Line 639 in 3946b22
Line 311 in 3946b22
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Error occurs when trying to add a tag named "some" What is the root cause of that problem?checking on empty array is returning [Function some]
What changes do you think we should make in order to solve the problem?Check the lenght of the tags array if it is empty js will return false and skip the "else if" condition
Checked on staging ios native Screen.Recording.2024-10-03.at.2.32.19.AM.movWhat alternative solutions did you explore? (Optional) |
@twisterdotcom I think that a backend fix would be better. Can you please pull someone from the internal team to take a look? TY! |
cc @yuwenmemon can you do this? |
Lolwut this is odd |
Open source finds only the best bugs. |
@twisterdotcom, @allroundexperts Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I don't think we need @allroundexperts here. |
Correct. This should be merged by @mountiny later today hopefully. |
merged |
@yuwenmemon, @twisterdotcom Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This has been on prod for a few days. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.42-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The tag named "some" should be successfully created and saved without any issues.
Actual Result:
The system returns an error stating 'A tag with this name already exists' even though no tag named 'some' is present, which might indicate a system error.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6621111_1727789514419.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @yuwenmemonThe text was updated successfully, but these errors were encountered: