Skip to content

Using local storage for notification toggling#1644

Merged
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:storage2
Jan 29, 2016
Merged

Using local storage for notification toggling#1644
dvoytenko merged 1 commit intoampproject:masterfrom
dvoytenko:storage2

Conversation

@dvoytenko
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is it possible to do the assert earlier than this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is done early as well. Just being attentive to types.

@dvoytenko
Copy link
Copy Markdown
Contributor Author

@erwinmombay added tests as well. ptal.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we either add a note here or on the PR to update validator. (or create an issue)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will, as soon as the PR is approved by @erwinmombay and @cramforce

@erwinmombay
Copy link
Copy Markdown
Member

@dvoytenko looks great, LGTM

@dvoytenko dvoytenko assigned cramforce and unassigned erwinmombay Jan 28, 2016
@dvoytenko dvoytenko changed the title POC: Using local storage for notification toggling Using local storage for notification toggling Jan 28, 2016
@dvoytenko
Copy link
Copy Markdown
Contributor Author

Assigning to @cramforce for an additional review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not in tests? Comment please

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed. Found another way to do this. But ultimately, I want unit-tests to be untainted by service integration - it's tested separately.

@dvoytenko
Copy link
Copy Markdown
Contributor Author

@cramforce changes are complete. PTAL.

@cramforce
Copy link
Copy Markdown
Member

LGTM

dvoytenko added a commit that referenced this pull request Jan 29, 2016
Using local storage for notification toggling
@dvoytenko dvoytenko merged commit f1bc9eb into ampproject:master Jan 29, 2016
@dvoytenko dvoytenko deleted the storage2 branch January 29, 2016 03:45
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be done as a then callback inside the storageKey_ conditional in #shouldShow?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My bad, looking at the compressed diff view I thought this was in #shouldShowViaXhr_. Ignore my comments.

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.

4 participants