Skip to content

Conversation

@evansiroky
Copy link
Contributor

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Requests for a list of projects were becoming painfully slow on my local instance. It turns out that not returning the otpServers in each project when returning a list of projects dramatically speeds things up.

@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2020

Codecov Report

Merging #319 into dev will increase coverage by 0.01%.
The diff coverage is 93.33%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev     #319      +/-   ##
============================================
+ Coverage     19.91%   19.93%   +0.01%     
  Complexity      410      410              
============================================
  Files           151      151              
  Lines          8331     8334       +3     
  Branches       1157     1157              
============================================
+ Hits           1659     1661       +2     
- Misses         6523     6524       +1     
  Partials        149      149              
Flag Coverage Δ Complexity Δ
#unit_tests 19.93% <93.33%> (+0.01%) 410.00 <1.00> (ø)
Impacted Files Coverage Δ Complexity Δ
...com/conveyal/datatools/manager/models/Project.java 28.57% <0.00%> (-1.43%) 2.00 <0.00> (ø)
...ols/manager/controllers/api/ProjectController.java 13.74% <100.00%> (+1.33%) 2.00 <1.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ac5c3d...39ee8f0. Read the comment docs.

@landonreed
Copy link
Contributor

landonreed commented Jun 9, 2020

This fix is related to changes to DeploymentController in #310. (Just adding a ref)


/**
* A MixIn to be applied to this deployment, for returning a single deployment, so that the list of ec2Instances is
* included in the JSON response.
Copy link
Contributor

Choose a reason for hiding this comment

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

Warning: javadoc copy pasta

Copy link
Contributor

@landonreed landonreed left a comment

Choose a reason for hiding this comment

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

Looks good, thanks. javadoc just needs an update.

@evansiroky evansiroky removed their assignment Jun 9, 2020
@evansiroky evansiroky merged commit d51c277 into dev Jun 10, 2020
@evansiroky evansiroky deleted the project-controller-improvements branch June 10, 2020 19:22
@landonreed
Copy link
Contributor

🎉 This PR is included in version 3.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants