remko / dsadmin Goto Github PK
View Code? Open in Web Editor NEWGoogle Cloud Datastore Emulator Administration UI
License: MIT License
Google Cloud Datastore Emulator Administration UI
License: MIT License
I am trying to make the UI work with datastore in firestore mode. This is my docker-compose.yaml
version: "3.9"
services:
# DSAdmin container
dsadmin:
image: "ghcr.io/remko/dsadmin:latest"
depends_on:
- datastore
ports:
- "3334:8080"
environment:
DATASTORE_PROJECT_ID: "project-dev"
DATASTORE_EMULATOR_HOST: "datastore:3333"
# Datastore Emulator container
datastore:
image: "gcr.io/google.com/cloudsdktool/google-cloud-cli:latest"
volumes:
- datastore_data:/opt/datastore/data
ports:
- "3333:3333"
command: [
"gcloud", "emulators", "firestore", "start","--database-mode=datastore-mode", "--host-port=0.0.0.0:3333"
]
environment:
CLOUDSDK_CORE_PROJECT: "project-dev"
volumes:
datastore_data:
But for some reason I keep on getting this Error.
What can I do about it?
I get an error when trying to view an entity from properties.js
in the function valueToEditValue
, as there is no handling for values of type "entityValue".
Steps:
npx dsadmin --project=my-datastore-project --datastore-emulator-host=localhost:8081
npx dsadmin --project=my-datastore-project --datastore-emulator-host=localhost:8081
dsadmin (project my-datastore-project) listening on http://localhost:8080
node:internal/process/promises:227
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 127.0.0.1:8081
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1139:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8081,
statusCode: 503,
connectedSocket: false,
reusedSocket: false
}
npm ERR! code 1
npm ERR! path /Desktop/opensource/oppia
npm ERR! command failed
npm ERR! command sh -c dsadmin "--project=my-datastore-project" "--datastore-emulator-host=localhost:8081"
npm ERR! A complete log of this run can be found in:
npm ERR! /.npm/_logs/2021-12-17T02_11_46_504Z-debug.log
Chrom console log
api.js:17 POST http://localhost:8080/v1/projects/my-datastore-project:runQuery net::ERR_EMPTY_RESPONSE
Wu @ api.js:17
id @ api.js:30
(anonymous) @ api.js:65
P @ react-query.js:1050
E @ react-query.js:620
ww @ react-query.js:680
t.fetch @ react-query.js:1081
n.executeFetch @ react-query.js:2336
n.onSubscribe @ react-query.js:2189
t.subscribe @ react-query.js:34
(anonymous) @ react-query.js:2960
o5 @ index-3eae4d6e.js:276
t.unstable_runWithPriority @ index-3eae4d6e.js:14
ho @ index-3eae4d6e.js:136
Ri @ index-3eae4d6e.js:275
(anonymous) @ index-3eae4d6e.js:275
Fe @ index-3eae4d6e.js:12
I.port1.onmessage @ index-3eae4d6e.js:8
react-query.js:1107 TypeError: Failed to fetch
at Wu (api.js:17)
at id (api.js:30)
at Object.queryFn (api.js:65)
at Object.P [as fn] (react-query.js:1050)
at E (react-query.js:620)
at new ww (react-query.js:680)
at e.t.fetch (react-query.js:1081)
at t.n.executeFetch (react-query.js:2336)
at t.n.onSubscribe (react-query.js:2189)
at t.subscribe (react-query.js:34)
onError @ react-query.js:1107
f @ react-query.js:592
(anonymous) @ react-query.js:656
Promise.catch (async)
E @ react-query.js:640
ww @ react-query.js:680
t.fetch @ react-query.js:1081
n.executeFetch @ react-query.js:2336
n.onSubscribe @ react-query.js:2189
t.subscribe @ react-query.js:34
(anonymous) @ react-query.js:2960
o5 @ index-3eae4d6e.js:276
t.unstable_runWithPriority @ index-3eae4d6e.js:14
ho @ index-3eae4d6e.js:136
Ri @ index-3eae4d6e.js:275
(anonymous) @ index-3eae4d6e.js:275
Fe @ index-3eae4d6e.js:12
I.port1.onmessage @ index-3eae4d6e.js:8
api.js:17 POST http://localhost:8080/v1/projects/my-datastore-project:runQuery net::ERR_CONNECTION_REFUSED
Wu @ api.js:17
id @ api.js:30
(anonymous) @ api.js:50
P @ react-query.js:1050
E @ react-query.js:620
ww @ react-query.js:680
t.fetch @ react-query.js:1081
n.executeFetch @ react-query.js:2336
n.onSubscribe @ react-query.js:2189
t.subscribe @ react-query.js:34
(anonymous) @ react-query.js:2960
o5 @ index-3eae4d6e.js:276
t.unstable_runWithPriority @ index-3eae4d6e.js:14
ho @ index-3eae4d6e.js:136
Ri @ index-3eae4d6e.js:275
(anonymous) @ index-3eae4d6e.js:275
Fe @ index-3eae4d6e.js:12
I.port1.onmessage @ index-3eae4d6e.js:8
react-query.js:1107 TypeError: Failed to fetch
at Wu (api.js:17)
at id (api.js:30)
at Object.queryFn (api.js:50)
at Object.P [as fn] (react-query.js:1050)
at E (react-query.js:620)
at new ww (react-query.js:680)
at e.t.fetch (react-query.js:1081)
at t.n.executeFetch (react-query.js:2336)
at t.n.onSubscribe (react-query.js:2189)
at t.subscribe (react-query.js:34)
onError @ react-query.js:1107
f @ react-query.js:592
(anonymous) @ react-query.js:656
Promise.catch (async)
E @ react-query.js:640
ww @ react-query.js:680
t.fetch @ react-query.js:1081
n.executeFetch @ react-query.js:2336
n.onSubscribe @ react-query.js:2189
t.subscribe @ react-query.js:34
(anonymous) @ react-query.js:2960
o5 @ index-3eae4d6e.js:276
t.unstable_runWithPriority @ index-3eae4d6e.js:14
ho @ index-3eae4d6e.js:136
Ri @ index-3eae4d6e.js:275
(anonymous) @ index-3eae4d6e.js:275
Fe @ index-3eae4d6e.js:12
I.port1.onmessage @ index-3eae4d6e.js:8
:8080/favicon.ico:1 GET http://localhost:8080/favicon.ico net::ERR_CONNECTION_REFUSED
I'm sure this is something that I'm doing wrong but I'm having issues getting this to work. I was able to use docker-compose to start both the dsadmin and datastore services. I can view it running on the ui and make changes fine. When I start my web app in development it seems like it is still trying to reach out to the production datastore and not the emulator. I'm assuming that I'm not setting environment variables correctly, I set them to match what was in the docker-compose file. Any suggestions
Hi, this business with editing nested entities, is there and idea of how that could/should be solved?
When I select a namespace, i can see all the data in that namespace.
When I then click on the tableheader to change the order, the namespace resets back to the default namespace.
The /namespaces/namespaceID/ part in the url seems to be missing.
When I manually add this namespace part to the url, is see the expected data in the expected order.
I just noticed: The same issue seem to occur when clicking on the next/previous buttons or selecting a different rows per page.
Thank you for creating this great tool. This really is the best tool I found.
Is there any way you can add basepath support for reverse proxying? The script includes on the index.html are hardcoded to the root.
When adding an array value to an indexed array, copy the 'exclude from indexes' flag from the other values. Datastore requires that either all or none of the values have to be indexed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.