Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

UI to send confirmation email for unclaimed packages #4309

Merged
merged 7 commits into from
Feb 14, 2017

Conversation

chadwhitacre
Copy link
Contributor

Part of #4305.

@chadwhitacre
Copy link
Contributor Author

The model for this is the email verification workflow.

@chadwhitacre
Copy link
Contributor Author

Oops. We'll see what Travis does with that set_trace. :-) Probably just time out ...

@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch from 8e7c3d9 to 8feb680 Compare February 8, 2017 01:41
@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Feb 8, 2017

Rebased onto #4155, was 8e7c3d9.

@chadwhitacre chadwhitacre changed the base branch from project/claim-packages-signin to project/claim-packages February 8, 2017 01:42
@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch 2 times, most recently from 8feb680 to af0ea7b Compare February 8, 2017 01:50
@chadwhitacre chadwhitacre changed the base branch from project/claim-packages to projects-elsewhere February 8, 2017 01:50
@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch 2 times, most recently from 11bfc72 to 13c1703 Compare February 8, 2017 02:03
@@ -36,6 +37,11 @@ elif action == 'set-primary':
participant.update_email(address)
elif action == 'remove':
participant.remove_email(address)
elif action == 'add-email-and-claim-package':
package_id = request.body['package_id']
package = Package.from_id(package_id)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What if it's None?

@chadwhitacre
Copy link
Contributor Author

Sooooo ... I've been working on teaching the claim form about when there is only one address, but the implication of #4305 (comment) is that there will only ever be zero or one address(!).

@chadwhitacre
Copy link
Contributor Author

Yay for talking to users? :)

@chadwhitacre
Copy link
Contributor Author

Though I guess that's not necessarily true for all package managers, and since we're already mostly done with accounting for multiple emails (it would be work to change the schema at this point) then we may as well go for that. But on the other hand if we want to specify where the email is coming from, that will be different for each package manager.

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Feb 8, 2017

We are trying to get this done once for npm. Future expansion is out of scope until we see traction from npm. We should tailor this to npm.

@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch from 67ad75a to 0a16a01 Compare February 8, 2017 22:53
@chadwhitacre
Copy link
Contributor Author

Ready for review, @mattbk @nobodxbodon @JessaWitzel et al.

@chadwhitacre
Copy link
Contributor Author

screen shot 2017-02-08 at 5 56 01 pm


screen shot 2017-02-08 at 5 56 43 pm


screen shot 2017-02-08 at 5 57 30 pm

@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch from 0a16a01 to b9c4323 Compare February 8, 2017 23:04
@chadwhitacre chadwhitacre force-pushed the project/claim-packages-confirm branch from b9c4323 to 12659d1 Compare February 8, 2017 23:05
@chadwhitacre chadwhitacre changed the base branch from projects-elsewhere to project/claim-packages February 8, 2017 23:05
{% else %}
<input type="hidden" name="package_id" value="{{ package.id }}">
<ul>
{% for i, email in enumerate(package.emails) %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we hide the bullets in this email list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 455f06c.

screen shot 2017-02-09 at 8 53 14 am

assert '[email protected]' in body

def test_auth_gets_multiple_options_if_present(self):
self.make_package('npm', 'bar', 'Bar', ['[email protected]', '[email protected]'])
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use constant like 9c05276?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 3586969.

@chadwhitacre
Copy link
Contributor Author

Kicked Travis, green now. We good here?

@nobodxbodon nobodxbodon merged commit 5bab99a into project/claim-packages Feb 14, 2017
@chadwhitacre chadwhitacre deleted the project/claim-packages-confirm branch February 16, 2017 18:29
chadwhitacre added a commit that referenced this pull request Feb 20, 2017
chadwhitacre added a commit that referenced this pull request Feb 20, 2017
chadwhitacre added a commit that referenced this pull request Mar 3, 2017
chadwhitacre added a commit that referenced this pull request Mar 17, 2017
chadwhitacre added a commit that referenced this pull request Mar 25, 2017
chadwhitacre added a commit that referenced this pull request Apr 3, 2017
chadwhitacre added a commit that referenced this pull request Apr 24, 2017
chadwhitacre added a commit that referenced this pull request Apr 28, 2017
chadwhitacre added a commit that referenced this pull request Apr 28, 2017
chadwhitacre added a commit that referenced this pull request May 5, 2017
chadwhitacre added a commit that referenced this pull request May 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants