-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
refactor: remove deprecated url.parse()
method
#7751
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
59c94dd
feat: support postgresql in database uri
cbaker6 4ee0264
lint
cbaker6 97922c7
revert LoggerController.js
cbaker6 3388d58
fix variance in error message for gcenter
cbaker6 f0e4c55
fix gcenter method to act it's original way
cbaker6 703bfde
add missing colon
cbaker6 ca00fc1
improve PostgresInitOptions.spec.js testcases
cbaker6 fe5105e
make GraphQL compare to lowercase for better comparison
cbaker6 3579d2a
reconfigure server when needed to prevent test failures
cbaker6 e5962b6
revert graph test change toLower
cbaker6 8dccff3
add coverage to AuthenticationAdapters.spec.js
cbaker6 1da1fba
ParseServerRESTController.spec.js needs reconfig before running
cbaker6 3a7acc4
update REST controller tests
cbaker6 7a21d31
add back reconfigure to rest transactions for mongo
cbaker6 41ad90d
remove working reconfigure
cbaker6 5c7a7f3
make PostgresInitOptions.spec.js use global reconfigure
cbaker6 f3bf93d
lint
cbaker6 0f3275e
remove extra parameter
cbaker6 716b300
remove transaction tests from REST controller
cbaker6 ef380e7
update batch.spec.js to async/await
cbaker6 6ba5d65
add back transaction tests to RESTController
cbaker6 97c7908
disable RestController transaction tests on Postgres
cbaker6 7d554f0
modify GraphQL test so it is not flaky
cbaker6 0072af0
wait for schema changes
cbaker6 0efba80
convert PostgresConfig to URI
cbaker6 af3a903
remove url.parse from LoggerController
cbaker6 4a00035
Merge branch 'alpha' into postgresURI
cbaker6 6b26dd5
remove uneccesary functoin
cbaker6 24737d1
increase schema watch test to 2 seconds
cbaker6 1a9a66c
add back parseURL to batch.js and add testcases
cbaker6 f7978cd
upgrade tests in PushController
cbaker6 92ae2cf
Merge branch 'alpha' into postgresURI
mtrezza f50e2a0
revert changes
cbaker6 0a699d2
more reverts
cbaker6 b176032
Merge branch 'alpha' into postgresURI
cbaker6 7618a25
Merge branch 'alpha' into postgresURI
cbaker6 6f349f2
Merge branch 'alpha' into postgresURI
mtrezza e106f6e
Merge branch 'alpha' into postgresURI
mtrezza 89024f8
Merge branch 'alpha' into postgresURI
mtrezza 5d23976
merge conflicts
cbaker6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,28 @@ describe('batch', () => { | |
expect(internalURL).toEqual('/classes/Object'); | ||
}); | ||
|
||
it('should return the proper url with bad url provided', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These tests are added because the design of |
||
const originalURL = '/parse/batch'; | ||
const internalURL = batch.makeBatchRoutingPathFunction( | ||
originalURL, | ||
'badurl.com', | ||
publicServerURL | ||
)('/parse/classes/Object'); | ||
|
||
expect(internalURL).toEqual('/classes/Object'); | ||
}); | ||
|
||
it('should return the proper url with bad public url provided', () => { | ||
const originalURL = '/parse/batch'; | ||
const internalURL = batch.makeBatchRoutingPathFunction( | ||
originalURL, | ||
serverURLNaked, | ||
'badurl.com' | ||
)('/parse/classes/Object'); | ||
|
||
expect(internalURL).toEqual('/classes/Object'); | ||
}); | ||
|
||
it('should handle a batch request without transaction', async () => { | ||
spyOn(databaseAdapter, 'createObject').and.callThrough(); | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.