Skip to content

Conversation

@yoganandaness
Copy link
Contributor

@yoganandaness yoganandaness commented Oct 20, 2025

Description

Persisting the Experiment table filters and searches in the query params, so that refreshing the page retains the data rather than starting from scratch. In addition to that, additional fetching query have been avoided.

Motivation and Context

Improve usability of experiment table

How Has This Been Tested

Manually

Fixes

Changes

In Experiment Table, query params persisting have been implemented .

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@yoganandaness yoganandaness requested a review from a team as a code owner October 20, 2025 11:39
@yoganandaness yoganandaness requested review from ACLay and removed request for a team October 20, 2025 11:39
@yoganandaness yoganandaness changed the title Swap 4929 user officer experiment table filter Swap 4929 user officer users and experiment table filter Oct 20, 2025
@yoganandaness yoganandaness changed the title Swap 4929 user officer users and experiment table filter improvement: user officer users and experiment table filter Oct 27, 2025
@yoganandaness yoganandaness changed the title improvement: user officer users and experiment table filter fix: user officer users and experiment table filter Oct 27, 2025
@yoganandaness yoganandaness force-pushed the SWAP-4929-user-officer-experiment-table-filter branch from c5e6a2f to 0003da9 Compare October 28, 2025 17:46
@yoganandaness yoganandaness force-pushed the SWAP-4929-user-officer-experiment-table-filter branch from 5e8415b to 8ea968b Compare October 29, 2025 10:29
@yoganandaness yoganandaness enabled auto-merge (squash) October 31, 2025 13:15
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

2 similar comments
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

Copy link
Contributor

@janosbabik janosbabik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yoganandaness , some comments from my side.

.orWhereILikeEscaped('lastname', '%?%', searchText);
});
}
logger.logInfo(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not important then I would not log the sort information.

let isMounted = true;

if (isMounted) {
if (isMounted && !isFirstRender) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw new GraphQLError(`Bad sort field given: ${sortField}`);
}
sortField = fieldMap[sortField];
query.orderByRaw(`${sortField} ${sortDirection}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to validate the user’s input values with GraphQL in this case?
The sortDirection string goes directly into the SQL command which could be harmful.

@Field(() => String, { nullable: true })
orderDirection?: string;
@Field({ nullable: true })
public sortDirection?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, we could use SortDirection enum (asc, desc) for validating the input, I guess.

@github-actions
Copy link
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

@github-actions
Copy link
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

1 similar comment
@github-actions
Copy link
Contributor

⚠️ Automatic rebase failed due to conflicts. Please rebase manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants