You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes code more complex than it needs to be (lots of existing data massaging for really no gain)
As such, we should kill and fix this unnecessarily complex code that was recently introduced. This means, at a minimum (I might be missing things):
Moving this data back into the policy_ key
Removing any data massaging from the backend
Have the frontend accept the same data as what's in the database
Where we should not display disabled fields, then let's use the disabled property to hide them. We will need to display them to admins soon enough
No need to worry about sending updates to policy members when the policy changes, that will be done as part of https://github.com/Expensify/Auth/pull/9773, which includes doing this for all current and future policy attributes
Problem & Solution
Sister issue: #36171
Discussed internally, summarised here and concluded there
policyTaxRates_andpolicyReportFields_for no good reason. There's no size to optimize for in these collections.policy_keydisabledproperty to hide them. We will need to display them to admins soon enoughcc @iwiznia @puneetlath @tgolen @marcaaron @francoisl @dangrous @johnmlee101 @MonilBhavsar
Upwork Automation - Do Not Edit