Skip to content
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

remove server.js and non-handlebars support from kiln #898

Merged
merged 5 commits into from Aug 29, 2017

Conversation

nelsonpecora
Copy link
Contributor

@nelsonpecora nelsonpecora commented Aug 28, 2017

  • BREAKING CHANGE for kiln v4.0.0 (closes remove server-side component saving #890)
  • removes support for serverSave and serverSaveAndRerender
  • removes assumption that components need a model.js in order to do client-side optimistic saving + re-rendering (no more passthrough model.js files!)
  • small bugfix for displaying page state correctly when viewing a published page
  • small bugfix to optimize kiln-view-public.js rendering size (28k → 12k unminified)

@@ -1,4 +1,4 @@
import { includes } from 'lodash';
import _ from 'lodash';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should uhhhhhhh use _.includes for this later in the file? And also write tests? and maybe also test your code???????????????????

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol this is funny...how did this even..work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shift-clay.js is pretty simple logic, but would be non-trivial to test. thanks for catching that syntax error tho!

@@ -67,7 +67,7 @@ export function getListData(store, { uri, prefix }) {
size: 1,
query: {
term: {
uri // match page uri
uri: replaceVersion(uri) // match page uri (removing @published or @scheduled)
Copy link
Contributor

@dmabuada dmabuada Aug 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace version or remove version? the pages index doesn't have any version appended to its document keys

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaceVersion is the name of the function; if passed a single argument it'll remove any version that's applied (or just pass through the uri, if it doesn't have a version)

@nelsonpecora nelsonpecora merged commit 58836a1 into master Aug 29, 2017
@nelsonpecora nelsonpecora deleted the models-only branch August 29, 2017 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove server-side component saving
4 participants