Skip to content

Conversation

@MichaelDeBoey
Copy link
Contributor

@MichaelDeBoey MichaelDeBoey commented May 23, 2019

What kind of change does this PR introduce?

I've extracted @Saeris' changes to Deployment out of #1925.

What is the current behavior?

  • Use mobx-react
  • Use inject HOC

What is the new behavior?

  • Use mobx-react-lite
  • Use new useSignals & useStore hooks
  • Refactor code to TS

What steps did you take to test this?

ZEIT Deploys

  • Verify that deployment modal of ZEIT says you need to sign in
  • Sign into ZEIT
  • Deploy to ZEIT
  • Make change to sandbox
  • Deploy again, verify new URL

Netlify Deploys

  • Deploy to Netlify
  • Check that logs show
  • Check that deployment is added
  • Make change
  • Deploy again, see if deployment is added
  • Claim deployment, see if it works

Checklist

  • Documentation N/A
  • Testing
  • Ready to be merged
  • Added myself to contributors table N/A

@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch from 64ec6a9 to fa0e8f3 Compare May 28, 2019 08:43
@MichaelDeBoey
Copy link
Contributor Author

@CompuIves @Saeris I've rebased onto master and pushed the suggested changes except for the destructuring.
When decided, I'll push those changes too. 🙂

@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch from fa0e8f3 to 0ddec36 Compare May 28, 2019 13:17
@MichaelDeBoey
Copy link
Contributor Author

Fixed some TypeScript errors (that weren't in #1986 yet) too

@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch 4 times, most recently from 40d6a89 to 22ff18a Compare May 30, 2019 13:32
@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch from 22ff18a to 212c262 Compare June 6, 2019 14:33
@MichaelDeBoey MichaelDeBoey mentioned this pull request Jun 26, 2019
@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch 2 times, most recently from 6f71cc5 to f1dc8a6 Compare July 2, 2019 22:02
@lbogdan lbogdan temporarily deployed to pr1969 July 2, 2019 22:09 Inactive
@MichaelDeBoey
Copy link
Contributor Author

@CompuIves Since all checks pass, I think this one can be merged after a last review 🙂

@MichaelDeBoey MichaelDeBoey force-pushed the refactor-deployment branch from f1dc8a6 to 81dc3af Compare July 4, 2019 17:31
@lbogdan lbogdan temporarily deployed to pr1969 July 4, 2019 17:44 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 4, 2019 23:31 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 9, 2019 00:31 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 9, 2019 01:07 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 13, 2019 13:55 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 14, 2019 15:45 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 15, 2019 20:46 Inactive
@lbogdan lbogdan temporarily deployed to pr1969 July 15, 2019 22:58 Inactive
@MichaelDeBoey
Copy link
Contributor Author

@CompuIves I tested the Netlify build flow and that one works, except for the "show logs" button that's not showing.
I saw there was a problem with the WebSocket connection too, so maybe it has something to do with that? 🤔

WebSocket connection to 'wss://pr1969.build.csb.dev/socket/websocket?guardian_token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJDb2RlU2FuZGJveCIsImV4cCI6MTU2NTI1ODU3OCwiaWF0IjoxNTYyNjY2NTc4LCJpc3MiOiJDb2RlU2FuZGJveCIsImp0aSI6Ijk2YzhlOTYwLWQ0MzctNGZhMy1iOTljLTUzMDM0YWYwNGJmMCIsIm5iZiI6MTU2MjY2NjU3Nywic3ViIjoiVXNlcjpmZDE2ZmI3Mi1jNDllLTQ5NDktYjZlZi1mZTVjZWUwOWU0MjgiLCJ0eXAiOiJhY2Nlc3MifQ.xuUQwYx3ArzROl9wQQPlzohfrPr9uoFmn4apmu_-xjoCdfIxxkDJA3e2evpGR-2Im0q8qzjOeU5E8AUyUtGZJw&vsn=2.0.0'
failed: Error during WebSocket handshake: Unexpected response code: 200

I couldn't test the ZEIT build flow because of #2169

@CompuIves
Copy link
Member

Thanks a lot @MichaelDeBoey, this is really good. So two things left for testing are:

  1. View logs (why doesn't it show), seems like the webhook isn't related
  2. ZEIT

I can do that now!

@MichaelDeBoey
Copy link
Contributor Author

@CompuIves I won't have time until late this evening to take a look at it unfortunately, so be my guest if you have 🙂

@CompuIves
Copy link
Member

After doing some testing on Netlify I also noticed that the status doesn't update. It should show this:
image

But it shows this:
image

I'm not sure if this is related to me testing on localhost? cc @SaraVieira

@CompuIves
Copy link
Member

Oh wait now it suddenly shows "Building..." but much later, maybe an observability issue?

@CompuIves
Copy link
Member

An observer was missing.

@lbogdan lbogdan temporarily deployed to pr1969 July 16, 2019 09:36 Inactive
@MichaelDeBoey
Copy link
Contributor Author

I just figured out I always need the observer when I use the useStore hook, so will take that in mind too from now on. 🙂

@MichaelDeBoey MichaelDeBoey deleted the refactor-deployment branch July 16, 2019 12:00
@MichaelDeBoey MichaelDeBoey mentioned this pull request Jul 17, 2019
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants