Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Optimise upload when allowOverwrite is true #123

Merged

Conversation

vitch
Copy link
Contributor

@vitch vitch commented Jul 8, 2022

There is no need to try and figure out if a revision has already been deployed
if we are going to overwrite it anyway. Let's save ourselves the network request!

What Changed & Why

Just a simple optimisation as described above. It's not going to make much difference because
since #119 it's been a single request to find if the revision exists. But it is still a little bit of work
that doesn't need to be done...

Related issues

#119 #121

PR Checklist

  • Add tests (There is already test coverage for both paths here and it still passes)
  • Add documentation (N/A - this isn't a user-facing change)
  • Prefix documentation-only commits with [DOC] (N/A)

People

All maintainers :)

There is no need to try and figure out if a revision has already been deployed
if we are going to overwrite it anyway. Let's save ourselves the network request!
@vitch vitch mentioned this pull request Jul 8, 2022
3 tasks
Copy link
Contributor

@lukemelia lukemelia left a comment

Choose a reason for hiding this comment

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

👍

@lukemelia lukemelia merged commit 35a2e8f into ember-cli-deploy:master Jul 10, 2022
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.

2 participants