Skip to content

Update PostgresStorageAdapter.js#6989

Merged
davimacedo merged 3 commits into
masterfrom
vitaly-t-patch-1
Nov 3, 2020
Merged

Update PostgresStorageAdapter.js#6989
davimacedo merged 3 commits into
masterfrom
vitaly-t-patch-1

Conversation

@vitaly-t

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

Copy link
Copy Markdown
Contributor

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

ghost commented Nov 2, 2020

Copy link
Copy Markdown

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

Generated by 🚫 dangerJS

@codecov

codecov Bot commented Nov 2, 2020

Copy link
Copy Markdown

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

vitaly-t commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

Looks better now 😄 Little steps.

@vitaly-t

vitaly-t commented Nov 3, 2020

Copy link
Copy Markdown
Contributor Author

@dplewis Should be good for merging ;)

@davimacedo davimacedo left a comment

Copy link
Copy Markdown
Member

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