Skip to content
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

Restore convert filters to explicit naming feature #438

Merged
merged 21 commits into from
May 17, 2024

Conversation

Meklo
Copy link
Contributor

@Meklo Meklo commented May 7, 2024

No description provided.

flomillot and others added 10 commits May 6, 2024 18:39
…nd updated imports accordingly. Added new services for filter creation and saving with token authentication.

Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
@Meklo Meklo force-pushed the fix/restore_filter_explicit_naming_conversion branch from c2a095b to 36aee40 Compare May 15, 2024 12:59
@Meklo Meklo changed the base branch from main to add_filter_api May 15, 2024 13:00
flomillot and others added 9 commits May 15, 2024 15:16
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
Put back the code with new Error() and update associated TS.

Signed-off-by: Florent MILLOT <millotflo@gmail.com>
@Meklo Meklo requested a review from dbraquart May 16, 2024 09:23
Base automatically changed from add_filter_api to main May 16, 2024 11:38
Copy link
Contributor

@dbraquart dbraquart left a comment

Choose a reason for hiding this comment

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

code: ok, the report of "Convert" code is OK
tests: works fine, but I found an issue (not a regression)
Test case:

  • convert a filter with a study where we have some matching elements
  • choose another study where there is no match : the previous list is still displayed.
    This is very confusing. When we set an empty array, the table is not updated. I made a suggestion to display the default table... don't know if we can do better. It's up to you if you want to fix it, or leave it for later (in this case I will approve the PR as is).

Comment on lines 220 to 224
matchingEquipments.map((equipment: any) => ({
[FieldConstants.AG_GRID_ROW_UUID]: uuid4(),
[FieldConstants.EQUIPMENT_ID]: equipment.id,
[DISTRIBUTION_KEY]: equipment.distributionKey,
}))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
matchingEquipments.map((equipment: any) => ({
[FieldConstants.AG_GRID_ROW_UUID]: uuid4(),
[FieldConstants.EQUIPMENT_ID]: equipment.id,
[DISTRIBUTION_KEY]: equipment.distributionKey,
}))
matchingEquipments.length === 0
? makeDefaultTableRows()
: matchingEquipments.map((equipment: any) => ({
[FieldConstants.AG_GRID_ROW_UUID]: uuid4(),
[FieldConstants.EQUIPMENT_ID]: equipment.id,
[DISTRIBUTION_KEY]: equipment.distributionKey,
}))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@Meklo Meklo requested a review from dbraquart May 17, 2024 08:38
Copy link
Contributor

@dbraquart dbraquart left a comment

Choose a reason for hiding this comment

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

code: ok
tests: not done on last commit

@Meklo Meklo merged commit 19f0e6a into main May 17, 2024
3 checks passed
@Meklo Meklo deleted the fix/restore_filter_explicit_naming_conversion branch May 17, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants