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

Update PostgresStorageAdapter.js #6989

Merged
merged 3 commits into from
Nov 3, 2020
Merged

Update PostgresStorageAdapter.js #6989

merged 3 commits into from
Nov 3, 2020

Conversation

vitaly-t
Copy link
Contributor

@vitaly-t vitaly-t commented Nov 2, 2020

Improve createClass transaction:

  • await makes it a more consistent sequence of queries
  • batch is not needed there
  • No need for an extra .then section

Improve `createClass` transaction:

* `await` makes it a more consistent sequence of queries
* `batch` is not needed there
* No need for an extra `.then` section
@ghost
Copy link

ghost commented Nov 2, 2020

Danger run resulted in 1 fail and 1 markdown; to find out more, see the checks page.

Generated by 🚫 dangerJS

@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #6989 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6989   +/-   ##
=======================================
  Coverage   93.81%   93.82%           
=======================================
  Files         169      169           
  Lines       12409    12405    -4     
=======================================
- Hits        11642    11639    -3     
+ Misses        767      766    -1     
Impacted Files Coverage Δ
...dapters/Storage/Postgres/PostgresStorageAdapter.js 95.87% <100.00%> (-0.02%) ⬇️
src/Adapters/Files/GridFSBucketAdapter.js 79.50% <0.00%> (-0.82%) ⬇️
src/RestWrite.js 93.82% <0.00%> (-0.17%) ⬇️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 93.58% <0.00%> (+0.66%) ⬆️

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 c983202...a6de8cb. Read the comment docs.

Remove batch-dependent error code check, as it should happen automatically without batch result.
Removing unused variable.
@vitaly-t
Copy link
Contributor Author

vitaly-t commented Nov 3, 2020

Looks better now 😄 Little steps.

@vitaly-t
Copy link
Contributor Author

vitaly-t commented Nov 3, 2020

@dplewis Should be good for merging ;)

Copy link
Member

@davimacedo davimacedo left a comment

Choose a reason for hiding this comment

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

LGTM!

@davimacedo davimacedo merged commit bbae55d into master Nov 3, 2020
@vitaly-t vitaly-t deleted the vitaly-t-patch-1 branch November 3, 2020 16:14
dblythy pushed a commit to dblythy/parse-server that referenced this pull request Dec 14, 2020
* Update PostgresStorageAdapter.js

Improve `createClass` transaction:

* `await` makes it a more consistent sequence of queries
* `batch` is not needed there
* No need for an extra `.then` section

* Update PostgresStorageAdapter.js

Remove batch-dependent error code check, as it should happen automatically without batch result.

* Update PostgresStorageAdapter.js

Removing unused variable.
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