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

added more parameters to list subscription update method #434

Merged
merged 8 commits into from
Dec 20, 2018
Merged

added more parameters to list subscription update method #434

merged 8 commits into from
Dec 20, 2018

Conversation

tavikukko
Copy link
Contributor

Category

  • Bug fix?
  • New feature?
  • New sample?
  • Documentation update?

What's in this Pull Request?

While refactoring the list subscription add method, realised that when updating the list subscription, you can update all the parameters: expirationDate and notificationUrl and clientState, before it was only possible to update the expirationDate. So I made all the parameters optional in the update method. I was wondering should we create methods for each case?

Also this should be backward compatible with earlier PnPjs versions.

@tavikukko
Copy link
Contributor Author

Did also some tests. With this update, if you call it without any parameters (which is possible as all parameters are now optional), the actual rest call is not failing, it jus and it doesn't update anything with empty body, nice.

@patrick-rodgers patrick-rodgers added this to the 1.2.8 milestone Dec 20, 2018
@patrick-rodgers
Copy link
Member

Not sure how it will merge but it looks like this branch doesn't have the update to the add method you submitted in another PR. Do you want to refresh this branch to ensure it has the latest before I merge? Would hate to overwrite your other change.

@tavikukko
Copy link
Contributor Author

tavikukko commented Dec 20, 2018

I think I got it merged all right.

@patrick-rodgers patrick-rodgers merged commit 6a5293f into pnp:dev Dec 20, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants