Introduce new URL macro `PAGE_VIEW_ID_64`
First Timers Only
We know figuring out the process for contributing to an open source project can be intimidating, so we created this issue as a way for you to learn the ropes. (If you feel comfortable contributing to open source projects, please leave this issue for someone else.)
What you will need to know
- Some familiarity with JavaScript
Background
How AMP support variable substitutions in various features RandomValue API
Motivation
See issue #12674
Step by step
- [ ] Claim this issue by adding a comment below. Please only claim this bug if you plan on starting work in the next day or so.
- [ ] If you aren't too familiar with Git/GitHub, see the Getting Started End-to-End Guide for an intro to Git & GitHub, and how to get a copy of the code. You can also refer to the Quick Start Guide for the necessary setup steps with less explanation than the End-to-End guide.
- [ ] Follow the instructions for building AMP.
- [ ] Search for the existing substitute variable
PAGE_VIEW_ID. Look for all its occurrences through out the repo. - [ ] Follow the same way how
PAGE_VIEW_IDwas introduced, introduce the new variable namedPAGE_VIEW_ID_64. UseGetRandomValuesAPI as the source of randomness. - [ ] The GetRandomValues API has a pretty good browser coverage, but still it's good to provide a fallback. Check out how existing code that handles the problem. You might want to move the code to
crypto-impl.jsfor reuse. - [ ] Do some manual test and sanity check to make sure everything works, via an amp-pixel example in
amp-pixel.amp.html. - [ ] Create a Git branch for making your changes.
- [ ] You may also need to add unit test to
test-url-replacements.js. - [ ] Document the new supported variable to
amp-var-substitutions.md. - [ ] Commit your changes frequently.
- [ ] Push your changes to GitHub.
- [ ] Create a Pull Request and request a code review from me (@lannka). Mention
Fixes #13282in the description. - [ ] Respond to your reviewer's comments (if any).
Once approved, your changes will be merged. ⚡⚡⚡Congrats on making your first contribution to the AMP Project!⚡⚡⚡ You'll be able to see it live across the web soon!
Thanks, and we hope to see more contributions from you soon.
Questions?
If you have questions ask in this issue or on your Pull Request (if you've created one) or see the How to get help section of the Getting Started guide.
Hi @lannka ,
I am Artha. I am pretty new to Github and would like to take up this task. I will get started at 6 PM EST today.
Let me know if i need to look into anything else for this task.
Thanks. https://www.linkedin.com/in/arthanaric/
thanks @Arthanari, let me know if you have any questions.
Hi @lannka ,
I have some questions about this. Do i just post comment here or is there any way to chat with you.
Kindly let me know.
Thanks.
you can try here first. or, there other options via Slack or Google group: https://github.com/ampproject/amphtml/blob/master/CONTRIBUTING.md#discussion-channels
Hello @Arthanari are you still working on this PR? Please let us know if you have any questions.
@calebcordry I'd like to take this over if @Arthanari isn't planning on completing this. Thanks, Greg
Hello @gremz, that would be awesome! Let me know if you have any questions.
@Arthanari I am assuming you have moved on to other things. Please ping me if this is not the case.
@calebcordry hi yes i have moved on to other things, i cudn't get my hands on this one. so i am NOT planning on working on this anymore. @gremz all the best.
hi @gremz do you still plan to work on this?
Hello, I still do. I started but was caught up in other work. I looks to resume this soon.
hi @gremz please let me know if you are still on it. we have some users are asking for this feature. So we want to get it prioritized.
Still on this, plan on getting it push this week
@gremz Any update on this? Thanks
@lannka @zhouyx as there is no news from @gremz, I plan to move on this one
Thanks @matthieuberger ! Let us know if you need any help!