-
Notifications
You must be signed in to change notification settings - Fork 13
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
design new dsl #88
Comments
This is a bit reactive to @mavdi PR, but I kind of agree after thinking about it a bit more We are probably optimising for the edge case scenario, drafted a proposal just now which could make things a bit less verbose : https://gist.github.com/kristofsajdak/73aadf4393c5526f3705/3099668f707c829fbcb6f31992e7990e5f4d83c9 This gets rid of the need to explicit declare each route in isolation, it's now only required when we you want to override defaults for authorisation, swagger, validation or when you want to add custom logic. |
Some comments/questions:
|
I agree. Declaring each method seems to be excessive. I like your proposed dsl @kristofsajdak but as I mentioned in our call it would be very tricky to implement such a DSL and have a functioning v1. IMO we should do a clean break, implement the dsl, tests things slightly better and then go and move the projects that use harvester to v2. @dclucas I agree. Hapi used to do On your 3rd point, could be nice but maybe down the line. Lets strip features to the minimum for now. |
@dclucas @mavdi agreed on 1. @dclucas 2. no reason why we can't have both @ssebro and myself have discussed 3. 5. , but due to lack of real use case we applied a bit of YAGNI, the current design is a change increment we can commit to as a team |
@kristofsajdak @dclucas @mavdi I don't have much to add here - I agree with the current state of the discussion. wrt backwards compatibility - I never imagined that today's clients would be able to keep using harvester v2.0 without any changes. The backwards compatibility I wanted was strictly for the object stored in _schema, because it powers several things outside harvester. |
@kristofsajdak @dclucas @mavdi Chatted with @mavdi about how the dsl might be implementable in a way that's mostly backwards compatible, so full backwards compatibility may actually be on the table... |
The new dsl design has been discussed off record within the team at various occasions, creating an issue here so we can track further discussion
This is on the table right now : https://gist.github.com/kristofsajdak/73aadf4393c5526f3705/1b35d1b1debfc6dc707193421753f6d9d9b3c7ac
The text was updated successfully, but these errors were encountered: