-
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
Add dynamic columns #43869
Add dynamic columns #43869
Conversation
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@ikevin127 this PR depends on some backend changes. I'll let you know once that's deployed so you can properly test this. |
@ikevin127 API is deployed, you can test this now |
This comment was marked as resolved.
This comment was marked as resolved.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.webmAndroid: mWeb Chromeandroid-mweb.webmiOS: Nativeios.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Note Not sure if the thing observed below is a blocker for this PR, and because of not having access to the design doc I'm not sure if the feature should have any level off If this is not specified in the doc and you think it's fine the way it is then let me know and I'll ✅ Approve. @luacmartins The only issue I found was with testing the Lines 86 to 93 in a4a1b20
And the Tip
See videooffline-issue.movNote: The |
@ikevin127 nice catch. I don't think that's a blocker for this PR but seems like something we wanna look into in a follow up. I've tried the
I think this is expected since Search is a READ command, so it won't be added to the queue. The question is why the change in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that's a blocker for this PR but seems like something we wanna look into in a follow up.
✅ Approved based on this!
I think this is expected since Search is a READ command, so it won't be added to the queue. The question is why the change in isOffline doesn't trigger the useEffect hook and why onReconnect doesn't work.
I've added a console log in that useEffect
, right above the SearchActions.search
command and it did log when going back online, which leads me to think that the issue might be related to the way we handle sequential queue read requests:
Lines 176 to 184 in f618a94
function read<TCommand extends ReadCommand>(command: TCommand, apiCommandParameters: ApiRequestCommandParameters[TCommand], onyxData: OnyxData = {}) { | |
// Ensure all write requests on the sequential queue have finished responding before running read requests. | |
// Responses from read requests can overwrite the optimistic data inserted by | |
// write requests that use the same Onyx keys and haven't responded yet. | |
if (PersistedRequests.getLength() > 0) { | |
Log.info(`[API] '${command}' is waiting on ${PersistedRequests.getLength()} write commands`); | |
} | |
SequentialQueue.waitForIdle().then(() => makeRequestWithSideEffects(command, apiCommandParameters, onyxData, CONST.API_REQUEST_TYPE.READ)); | |
} |
which as you mentioned, are not persisted and queued for when returning back online like write requests are.
@carlosmiceli Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Yea, I saw the same behavior. I agree that the issue is in how we're handling the SequentialQueue and we're somehow not triggering that API request |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
Details
Adds dynamic column logic to the Search page
Fixed Issues
$ #43494
Tests
Pre-requisite: an account with a money request and no policy
Category
,Tag
andTax
columns are not shownCategories
feature is enabledCategory
column is shownCategory
andTag
columns are shownCategory
,Tag
andTax
columns are shownOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Screen.Recording.2024-06-17.at.3.21.15.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop