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

fixing method setIndexesWithSchemaFormat #4454

Merged
merged 1 commit into from
Dec 24, 2017
Merged

fixing method setIndexesWithSchemaFormat #4454

merged 1 commit into from
Dec 24, 2017

Conversation

vitaly-t
Copy link
Contributor

@vitaly-t vitaly-t commented Dec 24, 2017

Fixing invalid database code in method setIndexesWithSchemaFormat:

  • It must be a transaction, not a task, as it executes multiple database changes
  • It should contain the initial queries inside the transaction, providing the context, not outside it;
  • Replaced the code with the ES6 Generator notation
  • Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
  • Removed creation of redundant promises

The change should improve the overall reliability of both functionality and tests.

Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
@codecov
Copy link

codecov bot commented Dec 24, 2017

Codecov Report

Merging #4454 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4454      +/-   ##
==========================================
- Coverage   92.66%   92.64%   -0.03%     
==========================================
  Files         118      118              
  Lines        8347     8346       -1     
==========================================
- Hits         7735     7732       -3     
- Misses        612      614       +2
Impacted Files Coverage Δ
...dapters/Storage/Postgres/PostgresStorageAdapter.js 96.81% <100%> (-0.01%) ⬇️
src/RestWrite.js 93.1% <0%> (-0.37%) ⬇️

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 a2b2f18...096a294. Read the comment docs.

@vitaly-t
Copy link
Contributor Author

vitaly-t commented Dec 24, 2017

@flovilmart The first time ever all the tests built from the first attempt :) Usually it takes a few re-runs to make them work :)

@flovilmart
Copy link
Contributor

That’s the real Xmas present here :)

@vitaly-t vitaly-t merged commit 415ee3a into master Dec 24, 2017
@vitaly-t vitaly-t deleted the vitaly-t-patch-1 branch December 24, 2017 19:03
flovilmart pushed a commit that referenced this pull request Dec 29, 2017
Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
flovilmart pushed a commit that referenced this pull request Dec 29, 2017
Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
flovilmart pushed a commit that referenced this pull request Dec 30, 2017
Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
flovilmart pushed a commit that referenced this pull request Dec 30, 2017
Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
flovilmart added a commit that referenced this pull request Dec 31, 2017
* Introduces flow types for storage

* Better typing of QueryOptions

* Adds flow types to SchemaCOntroller,

- runs flow on pre tests
- fixes flow

* Adds ClassLevelPermissions type

* Moves Controller types into a single file

* Changes import styles

* Changes import styles

* fixing method setIndexesWithSchemaFormat (#4454)

Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters

* nits

* Fixes tests, improves flow typing
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* Introduces flow types for storage

* Better typing of QueryOptions

* Adds flow types to SchemaCOntroller,

- runs flow on pre tests
- fixes flow

* Adds ClassLevelPermissions type

* Moves Controller types into a single file

* Changes import styles

* Changes import styles

* fixing method setIndexesWithSchemaFormat (parse-community#4454)

Fixing invalid database code in method `setIndexesWithSchemaFormat`:

* It must be a transaction, not a task, as it executes multiple database changes
* It should contain the initial queries inside the transaction, providing the context, not outside it;
* Replaced the code with the ES6 Generator notation
* Removing the use of batch, as the value of the result promise is irrelevant, only success/failure that matters

* nits

* Fixes tests, improves flow typing
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