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

amp-list: Require reset-on-refresh="always" for local data #17221

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

dreamofabear
Copy link

Related to #17202. Tested locally.

Turns out that changing reset-on-refresh behavior to also apply to local data (#16840) is a breaking change due to content height change when removing old children. Make this behavior opt-in by requiring reset-on-refresh="always".

/to @aghassemi

@dreamofabear
Copy link
Author

/cc @honeybadgerdontcare FYI validator change.

@codecov-io
Copy link

Codecov Report

Merging #17221 into master will decrease coverage by <.01%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master   #17221      +/-   ##
==========================================
- Coverage   77.84%   77.83%   -0.01%     
==========================================
  Files         562      562              
  Lines       41168    41168              
==========================================
- Hits        32046    32043       -3     
- Misses       9122     9125       +3
Flag Coverage Δ
#integration_tests 36.17% <ø> (+0.03%) ⬆️
#unit_tests 76.89% <66.66%> (-0.02%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f07056...b5e4e44. Read the comment docs.

@dreamofabear dreamofabear merged commit 7cd0ec4 into ampproject:master Jul 31, 2018
@dreamofabear dreamofabear deleted the list-reset-on-fetch branch July 31, 2018 22:19
aghassemi pushed a commit that referenced this pull request Aug 2, 2018
* Validator support for always|fetch.

* Update example file.
Gregable pushed a commit that referenced this pull request Aug 6, 2018
@Gregable Gregable mentioned this pull request Aug 6, 2018
Gregable added a commit that referenced this pull request Aug 6, 2018
- Emits a warning if JSON cannot be parsed #15888 
- Add `amp-pan-zoom` to experimental format #17150 
- Clarify `INLINE_STYLE_TOO_LONG` error message.
- Enable the `amp-date-picker` `minimum-nights` attribute #17201, #17220
- `amp-list`: Require `reset-on-refresh="always"` for local data #17221 
- `amp-3d-glt`: add attribute `clearColor` #17085
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