-
Notifications
You must be signed in to change notification settings - Fork 122
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
[OC-140] Declarative templates initialisation on a registry level #617
Conversation
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.
A couple of changes to get started
}); | ||
|
||
return { | ||
templates, |
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.
let's remove templates as we don't need it anymore
src/registry/domain/repository.js
Outdated
const S3 = require('./s3'); | ||
const settings = require('../../resources/settings'); | ||
const strings = require('../../resources'); | ||
const validator = require('./validators'); | ||
const versionHandler = require('./version-handler'); | ||
const registerTemplates = require('./register-templates'); | ||
|
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.
alphabetic lol 💩
describe('registry : domain : register-templates', () => { | ||
const registerTemplates = require('../../src/registry/domain/register-templates.js'); | ||
|
||
describe('when templates get registerd without additional templates', () => { |
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.
typo
Merged. @nickbalestra can you publish and update the wiki? Cheers. |
@matteofigus done (0.41.0 out and wiki updated) |
Templates declaration is now more explicit when configuring the registry (same API as per the node client):