-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add ability to define mapping policy for new fields #502
Conversation
Codecov Report
@@ Coverage Diff @@
## 2-dev #502 +/- ##
========================================
Coverage ? 81.39%
========================================
Files ? 34
Lines ? 774
Branches ? 0
========================================
Hits ? 630
Misses ? 144
Partials ? 0
Continue to review full report at Codecov.
|
@@ -86,7 +86,7 @@ | |||
<div class="col s7 m8 l9" v-if="error"> | |||
<div class="card error red-color"> | |||
<i class="fa fa-times dismiss-error" @click="dismissError()"></i> | |||
<p v-html="error"></p> | |||
<p class="white-text" v-html="error"></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You add a white-text
class here, and the css rule apply to .error-text
. is it normal?
(the same for each error card you modified)
@@ -143,6 +143,9 @@ | |||
padding: 8px 12px; | |||
margin: 0; | |||
} | |||
.error-text { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see previous
Co-Authored-By: Aschen <[email protected]>
…om:kuzzleio/kuzzle-admin-console into add-ability-to-restrict-collection-mapping
Adds the ability to define the `dynamic` property for collection mapping. This property can take 3 values: - "true": Stores the document and updates the collection mapping with inferred type - "false": Stores the document and does not update the collection mapping (fields are not indexed) - "strict": Rejects document See https://www.elastic.co/guide/en/elasticsearch/guide/current/dynamic-mapping.html This is configurable in the `kuzzlerc` within the `server.db.dynamic` property. The default value is `true` which allows the user to push arbitrary documents to Kuzzle and Elasticsearch will try to infer the corresponding mapping. (This is the current behaviour in Kuzzle) Admin-Console (wip): kuzzleio/kuzzle-admin-console#502 Documentation: kuzzleio/documentation#271 ## Other changes Fixed the usage of the `_meta` property for ES collection. This property must be passed to each call to `putMapping`. See #1268 chmod 777 on `node_modules/` because I'm tired of doing `sudo chmod +x node_modules/.bin/*` to run test locally
What does this PR do ?
Allows the definition of the
dynamic
property for the mappings.Now users have to specify the root
property
field for mappings:This PR is related to kuzzleio/kuzzle#1257 but the admin console will work with older kuzzle version too.
How should this be manually tested?
dynamic
property tostrict
at the same level asproperties
Other changes