-
Notifications
You must be signed in to change notification settings - Fork 29
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 CylcTree and use Deltas #458
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2dca620
Add CylcTree data structure to handle update/remove/add nodes to a tr…
kinow 80e3878
Update tree using the CylcTree in Vuex and other components
kinow 451a37e
Set tree state in the workflows module
kinow 838f969
Use beforeRouteLeave instead of beforeDestroy (views are not always d…
kinow 2bb1d85
Create one subscription in the view with a query with fragments, load…
kinow fc70082
Create family node from familyProxy.firstParent if not already in the…
kinow 9987d9c
Update unit tests (require firstParent in job, already in GraphQL query)
kinow 8b41136
Add note to vue configuration file about debugging with IDEs
kinow dfdb5d5
Use new deltas.shutdown to clear tree data
kinow d5a37a3
Fix bug when parent family is root or undefined (already removed)
kinow aa0bfd6
Fix bug computing the cycle point states (need to tally after everyth…
kinow 6720aa1
Fix bug when switching routes. Needs to re-initialize view state, and…
kinow 67ae2eb
Ignore console.error in Tree.vue view
kinow 39c5186
Removing non-delta related changes from the branch
kinow fef890e
Add methods to clear tree, and check whether it is empty or not. Acce…
kinow 3903a74
Handle cases where a TaskProxy has no jobs, and where a TaskProxy is …
kinow f92e4fd
Use deltas for OFFLINE mode
kinow fd892b3
Making sure subscriptions are correctly refreshed or stopped when use…
kinow c92bcd8
Add changelog
kinow e972b46
Add new unit tests for tree/index, but also remove unused function an…
kinow 1821a76
Add tests for the Workflow view and component/widget
kinow 2e01a8d
Add unit tests for CylcTree (missing TaskProxy and Job)
kinow e478184
Reduce branches in the code (review feedback)
5dfdac7
Add unit tests for task proxies, and fix bug in nodes removal code (u…
d6d3c72
Add unit tests for jobs
9de3d46
Fix JSDocs, remove unnecessary sort when removing cyclepoints (sorted…
5e9c10d
Ignore mock js files
kinow 9379a38
Add back copyright header
kinow 92334b9
Test the route update and route leave for the Tree view
kinow 301af00
Use a date formatter in tests to have consistent results. Otherwise u…
7c530f5
Add unit tests for deltas, and adjust the defensive-programming to pr…
9fe3836
Prevent browser console errors when a task has no jobs
e03d8e2
Fix runtime errors due to nodes whose parent node is not in the tree …
cc92f1f
Prevent runtime error due to missing parent in the family (manual tests)
514b1d4
Prevent runtime error if the parent of a job has been already removed
ce9d9cf
Fix pruning family proxies, and update tests to assert when cycle poi…
ae54603
Add code and tests to capture and log exceptions that happened when a…
207c1e6
Use a mixin for code in tree view and in the workflow view.
kinow bc03de4
Add note about why the family proxy state was missing
kinow 4b38b8a
Last changes, update the changelog to match the latest change, and re…
kinow c06f956
Rename treeview mixing to datatree to avoid confusion with Tree View
kinow 425ae06
Remove checks for null/undefined
kinow 8d58958
Keep 1 susbcription with deltas only, no matter number of tree widget…
kinow 7018a3d
Rename src/components/cylc/tree/tree.js to src/components/cylc/tree/c…
kinow ca68fa4
Update offline mock service, no need to use a Promise
e589acb
Update change log (now 0.3, not in 0.2 any longer)
kinow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,20 +78,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |
<v-list-item | ||
class="py-0 px-8 ma-0" | ||
@click="onClickAddTreeView" | ||
id="toolbar-add-tree-view" | ||
> | ||
<v-list-item-title><v-icon>mdi-file-tree</v-icon> Tree</v-list-item-title> | ||
</v-list-item> | ||
</v-list> | ||
<v-list class="pa-0"> | ||
<v-list-item | ||
class="py-0 px-8 ma-0" | ||
@click="onClickAddGraphView" | ||
class="py-0 px-8 ma-0" | ||
@click="onClickAddGraphView" | ||
id="toolbar-add-graph-view" | ||
> | ||
<v-list-item-title><v-icon>mdi-graph</v-icon> Graph</v-list-item-title> | ||
</v-list-item> | ||
<v-list-item | ||
class="py-0 px-8 ma-0" | ||
@click="onClickAddMutationsView" | ||
id="toolbar-add-mutations-view" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changes in this file are cosmetic (indentation) and for tests (id's) |
||
> | ||
<v-list-item-title><v-icon>mdi-apple-keyboard-command</v-icon> Mutations</v-list-item-title> | ||
</v-list-item> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We have now a function that closes all widgets, so that when you switch workflows in
/workflow/:id
route, we can clear the Lumino component and re-create the tree only.To iterate widgets, we need
@lumino/algorithm
'seach
anditer
. So declaring the dependency here instead of relying on transitive dependency.