-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] [Tags] Newly added tag status is disabled
and refreshing the page changes to enabled
#38265
Comments
Triggered auto assignment to @laurenreidexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @robertjchen ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Newly added tag status is disabled and refreshing the page changes to enabled What is the root cause of that problem?We disable the newly added Tag optimistically in App/src/libs/actions/Policy.ts Lines 2776 to 2778 in 13f8bc0
But the backend enables all new tags, like we do with all new categories. Also in OldDot newly added Tags are enabled. What changes do you think we should make in order to solve the problem?We should enable the newly added Tag here to not have discrepancy with the backend: App/src/libs/actions/Policy.ts Line 2778 in 13f8bc0
Similar to how we enable newly added Categories here: App/src/libs/actions/Policy.ts Lines 2722 to 2724 in 13f8bc0
|
Job added to Upwork: https://www.upwork.com/jobs/~010353991d7fc3df7f |
disabled
and refreshing the page changes to enabled
disabled
and refreshing the page changes to enabled
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
disabled
and refreshing the page changes to enabled
disabled
and refreshing the page changes to enabled
Upwork job price has been updated to $250 |
Not a deploy blocker. Opening for External Contributors |
This comment was marked as resolved.
This comment was marked as resolved.
The requirements for this are unclear as there's no real precedence. Should the default state of tags be enabled, or disabled, and the BE shouldn't be enabling it? There's a design doc on this in here #37311 but I don't have access. Is this experience confirmed? |
@jeremy-croff Good point! cc: @luacmartins for clarification on the proper behavior here 🙏 |
ProposalPlease re-state the problem that we are trying to solve in this issue. The newly added tag status is disabled and refreshing the page changes to enabled What is the root cause of that problem? Tags are initially disabled by default when created by the user. Upon refreshing the page, an API call is triggered with the command "OpenPolicyTagsPage," which subsequently enables the tags.
What changes do you think we should make in order to solve the problem? App/src/libs/actions/Policy.ts Lines 2777 to 2778 in b7a230e
In the createPolicyTag function, set |
Thanks for the ping. We'll address this in a follow up PR since this feature is still WIP. cc @waterim all tags should be enabled by default. |
@rushatgabhane bump for review of proposals ^^ |
Oh completely misread the above - @luacmartins is taking this on, so we don't need a proposal review of externals. |
@trjExpensify adding to wave-collect as this is tag related |
disabled
and refreshing the page changes to enabled
disabled
and refreshing the page changes to enabled
Noice! |
PR up! |
Gonna close this issue in favor of #38192 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.52-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Precondition:
OR
Expected Result:
Newly added tag should be
enabled
by default or the tag should not show for employee since it is disabled by defaultActual Result:
disabled
and when refreshing the page it changes toenabled
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6412863_1710369795480.bandicam_2024-03-14_04-42-11-264.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: