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

Remove article flag #3581

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Conversation

mhkawano
Copy link
Contributor

@mhkawano mhkawano commented Oct 16, 2024

The flag is always set for both basic and the normal runtime, so removing the flag and updating the tests.

b/279927284

@mhkawano mhkawano changed the title remove article flag Remove article flag Oct 16, 2024
@mhkawano mhkawano marked this pull request as ready for review October 16, 2024 20:58
Comment on lines 945 to +946
entitlements: {
products: ['pub1:label1'],
subscriptionToken: 's1',
entitlements: {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this expected? a nested entitlements object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah entitlements are contained in the article(which is replacing the old entitlements object), and entitlements object contains an entitlements field itself, which cause this nesting.
https://github.com/subscriptions-project/swg-js/blob/main/src/runtime/entitlements-manager.ts#L77
https://github.com/subscriptions-project/swg-js/blob/main/src/api/entitlements.ts#L40

@mhkawano mhkawano merged commit f74fc70 into subscriptions-project:main Oct 21, 2024
7 checks passed
@mhkawano mhkawano deleted the remove_article_flag branch October 21, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants