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

list of restxq functions is empty #508

Open
duncdrum opened this issue Sep 10, 2021 · 0 comments
Open

list of restxq functions is empty #508

duncdrum opened this issue Sep 10, 2021 · 0 comments
Labels
bug Something isn't working test Anything related to testing the extension

Comments

@duncdrum
Copy link
Contributor

duncdrum commented Sep 10, 2021

In an empty instance with nothing but the api installed, no restxq tree item is displayed. In a normal install with default apps it is there.

Screenshot 2021-09-10 at 13 10 27

With api version 1.2.0 and exist 5.4.0-SNAPSHOT the shortened response looks like this.

[ {
  "uri" : "/fusiondb/group",
  "methods" : [ {
    "name" : "GET",
    "function" : {
      "src" : "/db/system/repo/fusion-studio-api-1.2.0/api.xqm",
      "name" : "list-groups#0"
    }
  } ]
}, {
  "uri" : "/fusiondb/collection",
  "methods" : [ {
    "name" : "POST",
    "function" : {
      "src" : "/db/system/repo/fusion-studio-api-1.2.0/api.xqm",
      "name" : "update-collection-properties#2"
    }
  }, {
    "name" : "DELETE",
    "function" : {
      "src" : "/db/system/repo/fusion-studio-api-1.2.0/api.xqm",
      "name" : "delete-collection#1"
    }
  },

( … )

 {
  "uri" : "/",
  "methods" : [ {
    "name" : "",
    "function" : {
      "src" : "/db/system/repo/fusion-studio-api-1.2.0/api.xqm",
      "name" : "explorerOptions#0"
    }
  } ]
} ]

Not yet sure why these wouldn't be displayed, but obviously this accounts for the failing tests on CI checking for the display of restxq functions.

maybe the fact that this is an array of length 1 is a problem see api and extensions

but so far i haven't seen any filters that would exclude the API itself from being displayed in the restxq tree menu.

see #219

@duncdrum duncdrum added the bug Something isn't working label Sep 10, 2021
@duncdrum duncdrum added the test Anything related to testing the extension label Sep 10, 2021
duncdrum added a commit that referenced this issue Sep 13, 2021
duncdrum added a commit that referenced this issue Sep 13, 2021
duncdrum added a commit that referenced this issue Sep 14, 2021
skip doc and collection test for faster feedback

make #508 harder to ignore
@duncdrum duncdrum mentioned this issue Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working test Anything related to testing the extension
Projects
None yet
Development

No branches or pull requests

1 participant