Refactor and update the logic that deals with the snap-push store endpoint #632

Merged
merged 15 commits into from Jul 7, 2016

Conversation

Projects
None yet
2 participants
Collaborator

sergiusens commented Jul 6, 2016

No description provided.

sergiusens added some commits Jul 5, 2016

Hahahahaha

sergiusens added some commits Jul 7, 2016

@sergiusens sergiusens changed the title from WIP Refactor/push to Refactor the logic that deals with the snap-push store endpoint Jul 7, 2016

@sergiusens sergiusens changed the title from Refactor the logic that deals with the snap-push store endpoint to Refactor and update the logic that deals with the snap-push store endpoint Jul 7, 2016

sergiusens added some commits Jul 7, 2016

+ thread = Thread(target=self._update_status, args=(queue,))
+ thread.start()
+
+ widgets = ['Processing...', AnimatedMarker()]
@kyrofa

kyrofa Jul 7, 2016

Member

Would it look better if there was a space between these two?

@sergiusens

sergiusens Jul 7, 2016

Collaborator

I don't know, is this a question or a statement? :-)

@kyrofa

kyrofa Jul 7, 2016

Member

Haha, a question. But you can ignore it, this looks good to me 👍 .

Collaborator

sergiusens commented Jul 7, 2016

LP: #1572399 and LP: #1599953

@sergiusens sergiusens merged commit 7de1a0b into snapcore:master Jul 7, 2016

3 of 4 checks passed

Examples tests
Details
autopkgtest Success
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.05%) to 96.337%
Details

@sergiusens sergiusens deleted the sergiusens:refactor/push branch Jul 7, 2016

kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017

Refactor and update the logic that deals with the snap-push store end…
…point (#632)

Start using the new status_details_url provided by the push store endpoint.
This also requires a small much needed refactor to be able to update the
spinner text provided for feedback.

Error scenarios wrt pushing are streamlined into proper error classes
covering cases where reviews are needed, unexpected errors occur or
pushing to a snap name that does not exist (not registered).

LP: #1572399
LP: #1599953

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment