You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to create or edit a search schema, a user has to download the default schema (which they deduce from our docs), edit it in a text editor, and then upload it to Riak via curl.
Since we're already linking to the raw search schema in several places in the Explorer GUI (such as the Cluster view, Bucket Type and Bucket views, etc), we should make user's lives easier and allow them to edit the schema directly via Explorer.
Do a global search for /search/schema/ -- there are a handful of places where we build the raw schema URL manually, in the templates. Extract that URL to a Schema model property.
Bonus points for integrating a nice code editor (with syntax highlighting) JS plugin to edit the schemas, instead of a plain textbox.
Note: there is currently no way to list which schemas have been uploaded to Riak. (This'll require a separate issue, on the Explorer API -- see issue basho-labs/riak_explorer#89).
Note: Once a schema has been edited, the Search Indexes that are using it have to be reloaded. (it doesn't just take effect automatically once uploaded). The ability to reload an index (for user convenience) should also be implemented, separately (see issue basho-labs/riak_explorer#88).
The text was updated successfully, but these errors were encountered:
So you mention having a index having a 'hasMany' relationship with schemas, but is that really the case? Seems to me with how things are setup that they are a 1 to 1 relationship. Either way I can get started on this but would love clarity on how these two interact
Huh, I have no idea why I wrote that, initially :) (I'll edit the description shortly).
It's the reverse, actually. An index can only have one schema. (Which can be changed, although that requires the index to be reloaded). But one schema can be used by many indexes.
So it's a logical/abstract 'schema hasMany indexes' relationship, but not an ember data relationship. There's no API call that says "give me all the indexes used by this schema".
Currently, to create or edit a search schema, a user has to download the default schema (which they deduce from our docs), edit it in a text editor, and then upload it to Riak via curl.
Since we're already linking to the raw search schema in several places in the Explorer GUI (such as the Cluster view, Bucket Type and Bucket views, etc), we should make user's lives easier and allow them to edit the schema directly via Explorer.
So:
/search/schema/
-- there are a handful of places where we build the raw schema URL manually, in the templates. Extract that URL to a Schema model property.Bonus points for integrating a nice code editor (with syntax highlighting) JS plugin to edit the schemas, instead of a plain textbox.
Note: there is currently no way to list which schemas have been uploaded to Riak. (This'll require a separate issue, on the Explorer API -- see issue basho-labs/riak_explorer#89).
Note: Once a schema has been edited, the Search Indexes that are using it have to be reloaded. (it doesn't just take effect automatically once uploaded). The ability to reload an index (for user convenience) should also be implemented, separately (see issue basho-labs/riak_explorer#88).
The text was updated successfully, but these errors were encountered: