amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Introduce new URL macro `PAGE_VIEW_ID_64`

Open lannka opened this issue 8 years ago • 15 comments

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_ID was introduced, introduce the new variable named PAGE_VIEW_ID_64. Use GetRandomValues API 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.js for 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 #13282 in 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.

lannka avatar Feb 06 '18 00:02 lannka

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/

Arthanari avatar Mar 06 '18 20:03 Arthanari

thanks @Arthanari, let me know if you have any questions.

lannka avatar Mar 06 '18 20:03 lannka

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.

Arthanari avatar Apr 15 '18 14:04 Arthanari

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

lannka avatar Apr 16 '18 17:04 lannka

Hello @Arthanari are you still working on this PR? Please let us know if you have any questions.

calebcordry avatar Jul 16 '18 16:07 calebcordry

@calebcordry I'd like to take this over if @Arthanari isn't planning on completing this. Thanks, Greg

gremz avatar Aug 01 '18 15:08 gremz

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 avatar Aug 01 '18 16:08 calebcordry

@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.

Arthanari avatar Aug 17 '18 22:08 Arthanari

hi @gremz do you still plan to work on this?

lannka avatar Sep 09 '18 17:09 lannka

Hello, I still do. I started but was caught up in other work. I looks to resume this soon.

gremz avatar Sep 09 '18 17:09 gremz

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.

lannka avatar Nov 09 '18 17:11 lannka

Still on this, plan on getting it push this week

gremz avatar Nov 13 '18 15:11 gremz

@gremz Any update on this? Thanks

zhouyx avatar Jul 02 '19 20:07 zhouyx

@lannka @zhouyx as there is no news from @gremz, I plan to move on this one

mamalovesyou avatar Jul 19 '19 08:07 mamalovesyou

Thanks @matthieuberger ! Let us know if you need any help!

lannka avatar Jul 19 '19 15:07 lannka