Skip to content

fix: Server does not start via CLI when auth option is set#8666

Merged
mtrezza merged 7 commits into
parse-community:alphafrom
dblythy:fix-auth-parser
Jul 4, 2023
Merged

fix: Server does not start via CLI when auth option is set#8666
mtrezza merged 7 commits into
parse-community:alphafrom
dblythy:fix-auth-parser

Conversation

@dblythy

@dblythy dblythy commented Jun 26, 2023

Copy link
Copy Markdown
Member

Pull Request

Issue

Auth settings cannot be defined by json.

Closes: #8665

Approach

First commit is a failing test

Tasks

  • Add tests

@parse-github-assistant

Copy link
Copy Markdown

Thanks for opening this pull request!

@dblythy

dblythy commented Jun 26, 2023

Copy link
Copy Markdown
Member Author

@codecov

codecov Bot commented Jun 26, 2023

Copy link
Copy Markdown

Codecov Report

Patch and project coverage have no change.

Comparison is base (446cbb1) 94.37% compared to head (d7eff74) 94.38%.

❗ Current head d7eff74 differs from pull request most recent head 11f48f9. Consider uploading reports for the commit 11f48f9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##            alpha    #8666   +/-   ##
=======================================
  Coverage   94.37%   94.38%           
=======================================
  Files         185      185           
  Lines       14758    14758           
=======================================
+ Hits        13928    13929    +1     
+ Misses        830      829    -1     
Impacted Files Coverage Δ
src/Options/Definitions.js 100.00% <ø> (ø)
src/Options/index.js 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dblythy

dblythy commented Jun 26, 2023

Copy link
Copy Markdown
Member Author

@FransGH would you be willing to try this PR out and let us know if it resolves the issue you’ve had?

Let me know if you’d like another PR based on the LTS branch, I’d be happy to sort that out.

npm install dblythy/parse-server#fix-auth-parser

@FransGH

FransGH commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

@dblythy thx, I'll try it out on staging now!

@FransGH

FransGH commented Jun 26, 2023

Copy link
Copy Markdown
Contributor

@dblythy couldn't get it working yet, likely has nothing to do with the PR. When I replace v5.5.1 with "dblythy/parse-server#fix-auth-parser" I'm getting:

"WARNING, Unable to connect to 'http://localhost:1340/sel'. Cloud code and push notifications may be unavailable"!

Need to go now but will try to get your branch running asap. Is the LTS branch "5.5.x" or what release is your fork based on?
(I've not yet upgraded to 6.x as I stumbled on other breaking changes)

@dblythy

dblythy commented Jun 26, 2023

Copy link
Copy Markdown
Member Author

This PR is based on Parse Server 6, I can pretty easily create another PR based on the LTS branch. I'll have that for you tomorrow.

@dblythy dblythy requested a review from a team June 28, 2023 02:06
@mtrezza mtrezza changed the title fix: Auth does not load when starting Parse Server via CLI fix: Server does not start via CLI when the auth option is set Jun 28, 2023
@mtrezza mtrezza changed the title fix: Server does not start via CLI when the auth option is set fix: Server does not start via CLI with auth option set Jun 28, 2023
@mtrezza mtrezza changed the title fix: Server does not start via CLI with auth option set fix: Server does not start via CLI when auth option is set Jun 28, 2023

@mtrezza mtrezza 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.

The Postgres test are consistently failing with:

  1. execution can start Parse Server with auth via CLI
  • Error: Timeout - Async function did not complete within 20000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)

@dblythy dblythy requested a review from a team June 29, 2023 04:56
Comment thread src/Options/index.js

@mtrezza mtrezza 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.

Looks good!

@mtrezza mtrezza merged commit 4e2000b into parse-community:alpha Jul 4, 2023
parseplatformorg pushed a commit that referenced this pull request Jul 4, 2023
# [6.3.0-alpha.4](6.3.0-alpha.3...6.3.0-alpha.4) (2023-07-04)

### Bug Fixes

* Server does not start via CLI when `auth` option is set ([#8666](#8666)) ([4e2000b](4e2000b))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 6.3.0-alpha.4

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jul 4, 2023
@dblythy dblythy deleted the fix-auth-parser branch July 4, 2023 11:48
parseplatformorg pushed a commit that referenced this pull request Sep 16, 2023
# [6.4.0-beta.1](6.3.0...6.4.0-beta.1) (2023-09-16)

### Bug Fixes

* Parse Server option `fileUpload.fileExtensions` does not work with an array of extensions ([#8688](#8688)) ([6a4a00c](6a4a00c))
* Redis 4 does not reconnect after unhandled error ([#8706](#8706)) ([2b3d4e5](2b3d4e5))
* Remove config logging when launching Parse Server via CLI ([#8710](#8710)) ([ae68f0c](ae68f0c))
* Server does not start via CLI when `auth` option is set ([#8666](#8666)) ([4e2000b](4e2000b))

### Features

* Add conditional email verification via dynamic Parse Server options `verifyUserEmails`, `sendUserEmailVerification` that now accept functions ([#8425](#8425)) ([44acd6d](44acd6d))
* Add property `Parse.Server.version` to determine current version of Parse Server in Cloud Code ([#8670](#8670)) ([a9d376b](a9d376b))
* Add TOTP authentication adapter ([#8457](#8457)) ([cc079a4](cc079a4))

### Performance Improvements

* Improve performance of recursive pointer iterations ([#8741](#8741)) ([45a3ed0](45a3ed0))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 6.4.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Sep 16, 2023
parseplatformorg pushed a commit that referenced this pull request Sep 20, 2023
# [6.4.0-alpha.1](6.3.0...6.4.0-alpha.1) (2023-09-20)

### Bug Fixes

* Parse Server option `fileUpload.fileExtensions` does not work with an array of extensions ([#8688](#8688)) ([6a4a00c](6a4a00c))
* Redis 4 does not reconnect after unhandled error ([#8706](#8706)) ([2b3d4e5](2b3d4e5))
* Remove config logging when launching Parse Server via CLI ([#8710](#8710)) ([ae68f0c](ae68f0c))
* Server does not start via CLI when `auth` option is set ([#8666](#8666)) ([4e2000b](4e2000b))

### Features

* Add conditional email verification via dynamic Parse Server options `verifyUserEmails`, `sendUserEmailVerification` that now accept functions ([#8425](#8425)) ([44acd6d](44acd6d))
* Add context to Cloud Code Triggers `beforeLogin` and `afterLogin` ([#8724](#8724)) ([a9c34ef](a9c34ef))
* Add property `Parse.Server.version` to determine current version of Parse Server in Cloud Code ([#8670](#8670)) ([a9d376b](a9d376b))
* Add TOTP authentication adapter ([#8457](#8457)) ([cc079a4](cc079a4))

### Performance Improvements

* Improve performance of recursive pointer iterations ([#8741](#8741)) ([45a3ed0](45a3ed0))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 6.4.0-alpha.1

parseplatformorg pushed a commit that referenced this pull request Nov 16, 2023
# [6.4.0](6.3.1...6.4.0) (2023-11-16)

### Bug Fixes

* Parse Server option `fileUpload.fileExtensions` does not work with an array of extensions ([#8688](#8688)) ([6a4a00c](6a4a00c))
* Redis 4 does not reconnect after unhandled error ([#8706](#8706)) ([2b3d4e5](2b3d4e5))
* Remove config logging when launching Parse Server via CLI ([#8710](#8710)) ([ae68f0c](ae68f0c))
* Server does not start via CLI when `auth` option is set ([#8666](#8666)) ([4e2000b](4e2000b))

### Features

* Add conditional email verification via dynamic Parse Server options `verifyUserEmails`, `sendUserEmailVerification` that now accept functions ([#8425](#8425)) ([44acd6d](44acd6d))
* Add property `Parse.Server.version` to determine current version of Parse Server in Cloud Code ([#8670](#8670)) ([a9d376b](a9d376b))
* Add TOTP authentication adapter ([#8457](#8457)) ([cc079a4](cc079a4))

### Performance Improvements

* Improve performance of recursive pointer iterations ([#8741](#8741)) ([45a3ed0](45a3ed0))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 6.4.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AuthAdapters cannot be defined by CLI

4 participants