-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve RDM to Lingo migration #74
Conversation
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.
+1 tested. The only thing I think is worth adding here is the order_by() to ensure we get deterministic pref labels, everything else is FYI only and should be g2g.
this.selectedLoadEvent = params.selectedLoadEvent || ko.observable(); | ||
this.formatTime = params.formatTime; | ||
this.timeDifference = params.timeDifference; | ||
this.activeTab = params.activeTab || ko.observable(); | ||
this.editHistoryUrl = `${arches.urls.edit_history}?transactionid=${ko.unwrap(params.selectedLoadEvent)?.loadid}`; | ||
|
||
this.getSchemes = function(){ | ||
self.loading(true); | ||
self.submit('get_schemes').then(function(response){ |
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.
It's not worth polishing right now, just noting this should probably be a GET, not a POST. If you think the ETLManagerView needs to make this easier to accomplish that could be a core arches enhancement.
|
||
concepts_nodegroup_lookup, concepts_nodes = self.get_graph_tree( | ||
CONCEPTS_GRAPH_ID | ||
) | ||
concepts_node_lookup = self.get_node_lookup(concepts_nodes) | ||
self.etl_concepts(cursor, concepts_nodegroup_lookup, concepts_node_lookup) | ||
# Prefetch concept hierarchy to avoid building it multiple times | ||
concept_hierarchy, concepts_to_migrate = self.build_concept_hierarchy( |
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.
Nice. Also not worth polishing, but you can store this on self to stop having to pass it around.
Resolves #68
You should be able to review this by: