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

Creating new Schema on client requires refresh in order to show/be loaded in #485

Open
billcao opened this issue Feb 19, 2015 · 0 comments

Comments

@billcao
Copy link
Collaborator

billcao commented Feb 19, 2015

To replicate, create a new Schema using the editor and then try to create an Instance of the Schema you just created - it won't show up until you refresh the page.

The issue is that upon launching the Clotho client, the client makes a query call to the server for a list of all the Schemas but does not make this call/"refresh" the list when a new Schema is created. Refreshing forces a new Clotho.query({"schema" : SCHEMA_ALL}, {mute : true}) call in clothoSchemas.js to be made.

Fix is to trigger a new Clotho.query call when scope.save in clothoEditor.js is run/successful.

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

No branches or pull requests

3 participants