Skip to content

Conversation

newmuis
Copy link
Contributor

@newmuis newmuis commented Apr 15, 2018

This is the second step of #14357: removing the alias from 0.1=>1.0, and instead having separate codebases for each. This is necessary to hold breaking changes in 1.0 until later (since, if they were aliased, any breaking changes in 1.0 would also go. to 0.1).

Note that git won't hint these files, since it's not a move. Also note that a separate copy of the service getters had to be made, since the implementations are different types (see 07fd2fd).

@newmuis newmuis requested a review from gmajoulet April 16, 2018 16:22
Copy link
Contributor

@gmajoulet gmajoulet left a comment

Choose a reason for hiding this comment

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

Not a big deal, but if you want to preserve your github own line contributions numbers, you can commit with a diff author

git commit --author="Delicious copy pasta <copy@pasta.org>"

@newmuis
Copy link
Contributor Author

newmuis commented Apr 16, 2018

@gmajoulet I think that might fail the CLA check? ☹️

@newmuis newmuis requested a review from jridgewell April 16, 2018 21:44
@newmuis
Copy link
Contributor Author

newmuis commented Apr 16, 2018

Added @jridgewell to take a look for the change to the bundle size (baf2670)

* @param {!Window} win
* @return {?Promise<?../extensions/amp-story/0.1/variable-service.StoryVariableDef>}
*/
static storyVariableServiceForOrNullV01(win) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we reuse the same services, passing in an optional parameter for the version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be pretty complicated since the services' functions return different types, so we'll have to change every usage downstream

@newmuis newmuis merged commit 7461ac7 into ampproject:master Apr 17, 2018
glevitzky pushed a commit that referenced this pull request Apr 27, 2018
* Initial copy of 1.0 => 0.1

* Create separate services for v0.1

* Update 0.1 tests to use 0.1 services

* Increase uncompiled bundle size from 334.46kb to 334.55kb

* Wrong version for system-layer tests

* Update inline styles for page scaling to new API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants