-
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 2025-01-02][LHN Mismatch] Move client-only keys from report_ to reportMetadata_ #51867
Comments
Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new. |
|
Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify ( |
I'll be taking this part since it requires looking at the back-end also. |
Hey, Tomasz from Callstack here, I can help with this issue |
@TMisiukiewicz I need to confirm the full list that we're working with. To start, can you look into:
|
@puneetlath I checked this list and seems like majority of these properties are generated in the runtime and describe the options for LHN, not reports directly. Seems like they are not stored in Onyx at all, might the So, I'd say both properties are replaceable by referring to |
Oh wow, ok that's great to know.
This makes sense to me. Want to do this as a first step? Basically, raise a PR to update the type with only the things that are actually used by the client. Also, if the back-end attempts to merge something into Onyx that isn't in the type, do we log that? |
yeah sure, I'll start exploring it tomorrow 👍 |
So i verified all the properties and looks like there is 15 of them that should be possible to remove:
I’ll remove each unused property along with its references, one at a time, committing after each change to ensure stability. |
Nice! Sounds good. Perhaps we should break it up into a few different PRs so that it's easier to revert if one of them causes a problem, without needing to revert it all. |
Sure, i'll start with a PR with those that are not used anywhere as it's the easiest one |
Opened first PR #52182, now I'll move to work on the properties that have some references in the codebase but do not seem to be a part of |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-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-12-19. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@puneetlath just a quick heads-up, I tried building a simple, basic schema validator, just to validate simplest possible keys during I'll try to set this up with collections to be able to verify the performance overhead |
Sounds good.
Good to know! It would be awesome if it turns out we can remove lastMessageTranslationKey altogether.
Very cool! Interested to see what you find! |
Quick heads-up, I already implemented a simple solution for validating collection schema. Now I am measuring performance of moving |
Moving
They do not look very scary, it's mostly a matter of milliseconds. CI can give different results. I'll work on a migration file and open a PR |
Opened PR for |
Hmm if I haven't missed anything, |
opened #54295 |
Payment Summary
BugZero Checklist (@muttmuure)
|
@muttmuure we've had a lot of PRs here and we're almost to the end. I think we can pay it all out in one batch to Shubham at the end. |
@puneetlath I did some performance measurements for runtime validation. What I did was:
I did measurements for calling
Seems like enabling it makes single Some other thoughts about it after building PoC:
If you want to test it on your own, you can check my fork of Exfy with Let me know your thoughts 👀 FYI I'll be mostly OOO during the upcoming two weeks, I'll be back just for one day on December 30th. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-6 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 2025-01-02. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
We are going to be changing the behavior of OpenApp/ReconnectApp when it does a full reconnect to replace the full reports list that the client has stored instead of merging with it. This means that any client-only data that we have about reports can potentially get wiped when the back-end reconnects.
We already have a reportMetadata_ object in Onyx that is meant to store such data. Let's move any keys that are currently client-only that are stored in the report_ object to the reportMetadata_ object. These are some likely keys that we will need to migrate:
To do this we will need to:
a. Updating any code that sets the data to set it in reportMetadata_ instead
b. Updating any code that gets the data to get it from reportMetadata_ instead
c. Create migration to migrate any existing data in these keys from report_ to reportMetadata_
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: