kinow commented on code in PR #1792:
URL: https://github.com/apache/jena/pull/1792#discussion_r1148661637
##########
jena-fuseki2/jena-fuseki-ui/src/views/dataset/Edit.vue:
##########
@@ -237,13 +238,19 @@ export default {
this.content = newVal
this.codemirrorEditor.scrollTo(scrollInfo.left, scrollInfo.top)
},
- listCurrentGraphs: async function () {
+ listCurrentGraphs: async function (count=true) {
this.loadingGraphs = true
this.loadingGraph = true
this.code = ''
this.selectedGraph = ''
try {
- this.graphs = await
this.$fusekiService.countGraphsTriples(this.datasetName,
this.services.query['srv.endpoints'][0])
+ const endpoint = this.services.query['srv.endpoints'][0]
+ if (count) {
+ this.graphs = await
this.$fusekiService.countGraphsTriples(this.datasetName, endpoint)
+ } else {
+ const graphs = await
this.$fusekiService.listGraphs(this.datasetName, endpoint)
+ this.graphs = Object.fromEntries(graphs.map(name => [name, ""]))
+ }
Review Comment:
I will try to split this function into two later :+1:
##########
jena-fuseki2/jena-fuseki-ui/src/views/dataset/Edit.vue:
##########
@@ -237,13 +238,19 @@ export default {
this.content = newVal
this.codemirrorEditor.scrollTo(scrollInfo.left, scrollInfo.top)
},
- listCurrentGraphs: async function () {
+ listCurrentGraphs: async function (count=true) {
this.loadingGraphs = true
this.loadingGraph = true
this.code = ''
this.selectedGraph = ''
try {
- this.graphs = await
this.$fusekiService.countGraphsTriples(this.datasetName,
this.services.query['srv.endpoints'][0])
+ const endpoint = this.services.query['srv.endpoints'][0]
Review Comment:
#1679 has some changes for the `FusekiService` and the `src.endpoints`. Once
that one is merged, I will rebase here and update the code to that calls
`$fusekiService` methods.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]