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

Refresh doesn't work? #74

Open
YanDevDe opened this issue May 23, 2021 · 7 comments
Open

Refresh doesn't work? #74

YanDevDe opened this issue May 23, 2021 · 7 comments

Comments

@YanDevDe
Copy link

YanDevDe commented May 23, 2021

Hello everyone!

I've been trying to use this extension under fauna-dev (which runs per docker). Hence I'm using .faunarc at my root project directory with empty global admin key.

I've following content at .faunarc

FAUNA_KEY=secret
FAUNA_DOMAIN=127.0.0.1
FAUNA_SCHEME=http
FAUNA_PORT=8443
FAUNA_GRAPHQL_HOST=http://localhost:8084/graphql

This config works fine on fauna-schema-migration and faunadb nodejs module - my test runs smoothly and it can pull data from fauna-dev too. It also displays correctly in FaunaDB Extension at running it first time.

But for some reason, when I added some data to fauna-dev - I don't see this new data at FaunaDB Plugins in VSCode. If I click refresh button at top right - it just happens nothing. Not even loader bar thing appears.

Temporary fix would be closing Visual Studio Code and re-open it again and then the data are visible - which kinda... sucks lol

Am I missing something here?

Been running fauna's docker by:

docker run --rm --name faunadb -p 8443:8443 -p 8084:8084 fauna/faunadb

I'm using 1.7.1 Fauna from VSCode Marketplace.
Visual Studio Code: 1.56
macOS 11.2.3 (Apple M1)

Any tips or help are welcome! :)

Thanks,

Yan

@fireridlle
Copy link
Contributor

Don't you have any error messages at the bottom right corner?
Could you try following and describe what you get

  1. create a collection
CreateCollection({name: "test"})
  1. click the refresh button. does test collection appear at the right sidebar? if no, try step 3
  2. run paginate collection query. does test collection present at the response?
Paginate(Collections())

@YanDevDe
Copy link
Author

YanDevDe commented May 24, 2021

The refresh did nothing, so yeah, I get no error messages either too.

I can add normally with CreateCollection({name: "test"})and I can receive Paginate(Collections()), but the refresh still doesn't work, it just... do absolutely nothing.

image

After I entered everything, I clicked on refresh icon and it does nothing again. It only show once when Visual Studio Code has started for the first time after closing it. (Hence login.js1, login.js2, login.js3, login.js4 is showing here)

@YanDevDe
Copy link
Author

YanDevDe commented May 24, 2021

When I restart VSCode, then this is shown

image

However, it doesn't restart still + only updated/works once when running VSCode as new window.

@YanDevDe
Copy link
Author

Does it has something to do with GRAPHQL? I don't use GraphQL so I'm not quite sure if this is the issue.

FAUNA_GRAPHQL_HOST=http://localhost:8084/graphql

@fireridlle
Copy link
Contributor

@YanDevDe have you deleted databases login.js1, login.js2 etc..? are not shown on the second screen.
have you faced the same issue with db.fauna.com?

@YanDevDe
Copy link
Author

YanDevDe commented May 24, 2021

Yes, I've deleted login.js1 etc because this was from test from fauna-blueprint (and it auto-removed again in test). Sorry for the confusion.

db.fauna.com with following .faunarc

FAUNA_ADMIN_KEY=<fauna secret key from fauna.com>

Also lists the database (with demo data) after VSCode restart - but it doesn't refresh here either too.

image

@hugomrdias
Copy link

I have probably the same issue, refresh doesnt show newly created documents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants