Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

fix: slice creation #750

Merged
merged 8 commits into from
May 3, 2023
Merged

fix: slice creation #750

merged 8 commits into from
May 3, 2023

Conversation

stevenyh3
Copy link
Contributor

No description provided.

@cabreraalex
Copy link
Member

Could ya describe what this does/fixes?

@@ -22,7 +22,7 @@

// check if predicates are valid (not empty)
function checkValidPredicates(preds) {
let valid = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding a validity check for empty predicates.

@@ -135,7 +137,10 @@
});
return s;
});
selections.update((sels) => ({ slices: [], metadata: sels.metadata }));
Copy link
Contributor Author

@stevenyh3 stevenyh3 May 3, 2023

Choose a reason for hiding this comment

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

Currently after we create/update the slice, the selection will be cleared and will need to select the modified slice again to see the changes, so I think maybe we can auto-select the new slice to see immediate changes.

$selections.slices.forEach((s, i) => {
let sli_preds = $slices.get(s).filterPredicates;
if (i !== 0) {
sli_preds.join = "&";
}
slicesPredicates.predicates.push(sli_preds);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The type should be predicate instead of predicate group when creating a derived(nested) slice from the current selected slice.

@cabreraalex cabreraalex merged commit b43f41a into main May 3, 2023
cabreraalex pushed a commit that referenced this pull request May 5, 2023
* fix: assign value field for column

* feat: add predicate check before create slice

* fix: avoid showing multiple mdiDotsHorizontal

* feat: support nested slices creation

* fix: show option menu

* fix: handle empty predicates & deep copy nested slices

* refactor: auto-select slice after create/update to see immediate changes
@stevenyh3 stevenyh3 deleted the slice-create-fix branch May 22, 2023 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants