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

Postgres exclude failing tests #2081

Merged

Conversation

drew-gross
Copy link
Contributor

Add it_exclude_dbs which turns into xit for DBs that don't work with this interface.

Inline addSchema, which was only used in one place

Do authData and update operator transformation in Parse Server, not DB adapter.

Implement more types and duplicate value detection in Postgres adapter.

More passing postgres tests

Handle schema updates, and $in for non array columns

remove authdata from user and implement ensureUniqueness

Make some tests work, detect existing classes

Throw proper error for unique index violation

fix findOneAndUpdate

Support more types

support more type

Support boolean, fix _rperm/_wperm, add TODO

Support string types and also simplify tests

Move operator flattening into Parse Server and out of mongo adapters

Move authdata transform for create into Parse Server

Move authdata transforms completely in to Parse Server

Fix test setup

inline addSchema

Inject default schema to response from DB adapter
@ghost
Copy link

ghost commented Jun 16, 2016

@drew-gross updated the pull request.

@ghost
Copy link

ghost commented Jun 16, 2016

@drew-gross updated the pull request.

@drew-gross drew-gross changed the title Postgres mark notworking Postgres exclude failing tests Jun 16, 2016
@ghost
Copy link

ghost commented Jun 16, 2016

@drew-gross updated the pull request.

1 similar comment
@ghost
Copy link

ghost commented Jun 16, 2016

@drew-gross updated the pull request.

@codecov-io
Copy link

codecov-io commented Jun 16, 2016

Current coverage is 92.00%

Merging #2081 into master will increase coverage by 0.08%

@@             master      #2081   diff @@
==========================================
  Files            93         93          
  Lines          6717       6765    +48   
  Methods        1191       1191          
  Messages          0          0          
  Branches       1411       1430    +19   
==========================================
+ Hits           6174       6224    +50   
+ Misses          543        541     -2   
  Partials          0          0          

Powered by Codecov. Last updated by 0ff35e1...5ecd34d

@@ -51,7 +50,7 @@ describe('parseObjectToMongoObjectForCreate', () => {

//TODO: object creation requests shouldn't be seeing __op delete, it makes no sense to
//have __op delete in a new object. Figure out what this should actually be testing.
notWorking('a delete op', (done) => {
xit('a delete op', (done) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

excluded for both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, there were a handful of tests that were marked with notWorking from the start. xit is just notWorking but also adds some useful output when the tests are run.

Copy link
Contributor

Choose a reason for hiding this comment

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

all good then :)

@flovilmart
Copy link
Contributor

LGTM

@flovilmart flovilmart merged commit ab06055 into parse-community:master Jun 17, 2016
}
}

const transformAuthData = (className, object, schema) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

...handled here, in Parse Server, not the DB adapter. The eventual plan is to somewhat duplicate the mongo format, so each type of auth data gets it's own column, like _auth_data_facebook and so-on.

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.

4 participants