mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[ContentManagement] Use natural number for version (#153239)
This commit is contained in:
parent
15b1dd2e45
commit
92a6a1a7ea
36 changed files with 219 additions and 247 deletions
|
@ -22,7 +22,7 @@ export default {
|
|||
const todosClient = new TodosClient();
|
||||
|
||||
const contentTypeRegistry = new ContentTypeRegistry();
|
||||
contentTypeRegistry.register({ id: 'todos', version: { latest: 'v1' } });
|
||||
contentTypeRegistry.register({ id: 'todos', version: { latest: 1 } });
|
||||
|
||||
const contentClient = new ContentClient((contentType: string) => {
|
||||
switch (contentType) {
|
||||
|
|
|
@ -34,7 +34,7 @@ export class ContentManagementExamplesPlugin
|
|||
contentManagement.registry.register({
|
||||
id: 'todos',
|
||||
version: {
|
||||
latest: 'v1',
|
||||
latest: 1,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ export const registerTodoContentType = ({
|
|||
id: TODO_CONTENT_ID,
|
||||
storage: new TodosStorage(),
|
||||
version: {
|
||||
latest: 'v1',
|
||||
latest: 1,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue