Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Feature/support private at sites#1531

Merged
develric merged 29 commits intodevelopfrom
feature/support-private-at-sites
Apr 15, 2020
Merged

Feature/support private at sites#1531
develric merged 29 commits intodevelopfrom
feature/support-private-at-sites

Conversation

@khaykov
Copy link
Copy Markdown
Contributor

@khaykov khaykov commented Apr 6, 2020

This PR adds support for retrieving and storing a cookie used to access media on private atomic sites.

It can be tested with this PR on client-side.

What changed:

  • Updated site model and table to include two new flags that indicate if site is atomic or it's coming soon.
  • Updated Site store and added logic for fetching a cookie from the endpoint. Adding live release test for this part is a bit difficult at the moment, so I only added test for logic that surrounds it.
  • Added a Private Atomic cookie provided that handles parsing, storing, retrieving and all kinds of exciting things related to cookie.

@khaykov khaykov marked this pull request as ready for review April 13, 2020 07:36
@khaykov khaykov requested a review from develric April 13, 2020 07:37
@khaykov khaykov requested a review from renanferrari April 13, 2020 07:37
@khaykov khaykov marked this pull request as ready for review April 13, 2020 07:37
@develric develric self-assigned this Apr 14, 2020
Copy link
Copy Markdown
Contributor

@develric develric left a comment

Choose a reason for hiding this comment

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

Hi @khaykov 👋! Tested it with the companion PR and works as described, good job 👍!

Just to document a bit what we said in slack, it seems there is an inconsistency on the BE side that is marking a coming soon site as IS_PRIVATE but not IS_COMING_SOON. Meanwhile it becomes consistent in the BE, since you are checking this:

    public boolean isPrivateWPComAtomic() {
        return isWPComAtomic() && (isPrivate() || isComingSoon());
    }

we should be safe and sound already 😊.

@develric develric merged commit 878cd59 into develop Apr 15, 2020
@khaykov khaykov deleted the feature/support-private-at-sites branch June 26, 2020 02:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants