-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-04-03] [Report Fields] [Onyx] Move policyReportFields_
key back into the policy_
key
#36170
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010e62ab2c798627fa |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @mollfpr ( |
Sibtain will be handling the FE changes and I will take the BE changes |
I am not aware of any documented problem with storing everything related to a policy in the Some hypothetical problems to watch out for could be:
That's all I have to say on it though. I have not instrumented any of that and it's all just theoretical. This proposal looks fine. |
How large? Tags is the most bloating data and it's already in its own key (and for now we'll leave it there)
Can you expand on "we do a deep merge"? Where and why? Thanks for having a look and commenting 🙇 |
I haven't instrumented anything so I can't answer that question.
There is a memory cache layer. Before we save things to the Onyx dbs we merge them into the existing objects in the cache. The smaller those objects are the faster they would be to merge (hypothetically). I am not aware that we've hit any kind of limit there yet - but I do know that it was slow enough in the past that we optimized it to make it faster. We could have someone instrument to see at what point the merges get slow - maybe it's a lot or not. |
@allroundexperts, @thienlnam Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Will have a PR ready by tomorrow Melv. |
Update: Still working on a PR. Taking me longer than I expected. Will provide an update tomorrow. |
No worries, I'll still need to fold the reportField back into the policy_ key on the back-end. I'm currently working on those pusher updates for modifying an existing report field / new endpoint for removing a field |
Created draft PR #36553. Please let me know once the backend changes are done and I'll then record the videos. |
@allroundexperts, @thienlnam Huh... This is 4 days overdue. Who can take care of this? |
Still haven't had the chance to add the BE changes as I'm focused on Track, likely will get to it later this week |
Back-end PR is in review, as part of simplifying the changes I've made a few additional changes that will need to be reflected in the FE PR
|
The last Auth PR was merged and should be getting deployed on Monday - once that is done, we can merge @allroundexperts's App PR here #36553 |
Auth PR was deployed today, so looks like we need to get @allroundexperts PR into review. When do we expect that to happen? |
@allroundexperts, @thienlnam Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@thienlnam @JmillsExpensify PR ready for review! |
Thank you! |
@JmillsExpensify Could you assign me here as I reviewed the PR? Thanks! 🙇 |
Done. I'll go ahead and assign myself for the payment later. |
policyReportFields_
key back into the policy_
keypolicyReportFields_
key back into the policy_
key
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.56-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-04-03. 🎊 For reference, here are some details about the assignees on this issue:
|
Payment summary:
@jjcoffee Do we need any regression tests for this issue? |
Upwork offer sent to C+ |
@JmillsExpensify Accepted, thanks! There should already be regression tests that cover the report fields functionality, so I think we're good here. |
Awesome! Contract paid, so closing this issue. |
Payment summary:
|
$500 approved for @allroundexperts |
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_
keydisabled
property 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
The text was updated successfully, but these errors were encountered: