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

feat: Add Cloud Code context accessibility to ParseUser.logIn #2010

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Aug 30, 2023

Pull Request

Issue

Closes: #1991

Tasks

  • Add tests

@dplewis dplewis changed the title fix: Parse.User.logIn doesn't pass context to Cloud Code fix: Parse.User.logIn doesn't pass context to Cloud Code Aug 30, 2023
@dplewis dplewis requested a review from mtrezza August 30, 2023 18:48
@parse-github-assistant
Copy link

Thanks for opening this pull request!

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (7e2585c) 100.00% compared to head (fb75991) 100.00%.
Report is 1 commits behind head on alpha.

❗ Current head fb75991 differs from pull request most recent head 591d6cb. Consider uploading reports for the commit 591d6cb to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##             alpha     #2010   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           61        61           
  Lines         6133      6137    +4     
  Branches      1494      1497    +3     
=========================================
+ Hits          6133      6137    +4     
Files Changed Coverage Δ
src/ParseUser.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtrezza
Copy link
Member

mtrezza commented Aug 30, 2023

I assume this needs to be merged before parse-community/parse-server#8724?

@dplewis
Copy link
Member Author

dplewis commented Aug 30, 2023

Doesn’t have to be but could help with the test cases

@mtrezza
Copy link
Member

mtrezza commented Aug 30, 2023

OK, can we merge this already, or do you want to test this out further, since this is related to another PR.

@dplewis
Copy link
Member Author

dplewis commented Aug 30, 2023

You can merge it

@mtrezza
Copy link
Member

mtrezza commented Aug 30, 2023

Is this a bug fix, or rather a feature, i.e. expanding the context's accessibility? Because context is not available from everywhere, but that doesn't make it a bug. The plan is to gradually expand its accessibility.

@dplewis
Copy link
Member Author

dplewis commented Aug 30, 2023

Its a feature

@mtrezza mtrezza changed the title fix: Parse.User.logIn doesn't pass context to Cloud Code feat: Add Cloud Code context accessibility to ParseUser.logIn Aug 30, 2023
@mtrezza mtrezza merged commit 2446007 into parse-community:alpha Aug 30, 2023
parseplatformorg pushed a commit that referenced this pull request Aug 30, 2023
# [4.2.0-alpha.8](4.2.0-alpha.7...4.2.0-alpha.8) (2023-08-30)

### Features

* Add Cloud Code context accessibility to `ParseUser.logIn` ([#2010](#2010)) ([2446007](2446007))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 4.2.0-alpha.8

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Aug 30, 2023
@dplewis dplewis deleted the context-login branch August 31, 2023 16:10
parseplatformorg pushed a commit that referenced this pull request Sep 16, 2023
# [4.3.0-beta.1](4.2.0...4.3.0-beta.1) (2023-09-16)

### Bug Fixes

* `ParseUser.linkWith` doesn't remove anonymous auth data ([#2007](#2007)) ([7e2585c](7e2585c))
* Hard-coding of `react-native` path does not work for workspace builds ([#1930](#1930)) ([8222f3c](8222f3c))

### Features

* Add Bytes type to `Parse.Schema` ([#2001](#2001)) ([343d0d7](343d0d7))
* Add Cloud Code context accessibility to `ParseUser.logIn` ([#2010](#2010)) ([2446007](2446007))
* Add support for custom EventEmitter ([#1999](#1999)) ([ca568a6](ca568a6))
* Add support for excluding keys in `ParseQuery.findAll` ([#2000](#2000)) ([012ba4c](012ba4c))
* Add support to invoke a Cloud Function with a custom `installationId` via `Parse.Cloud.run` ([#1939](#1939)) ([eb70b93](eb70b93))
* Allow overriding `Parse.Error` message with custom message via new Core Manager option `PARSE_ERRORS` ([#2014](#2014)) ([be0c8a6](be0c8a6))
* Login with username, password and additional authentication data via `ParseUser.logInWithAdditionalAuth` ([#1955](#1955)) ([2bad411](2bad411))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 4.3.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 26, 2023
# [4.3.0-alpha.1](4.2.0...4.3.0-alpha.1) (2023-09-26)

### Bug Fixes

* `ParseUser.linkWith` doesn't remove anonymous auth data ([#2007](#2007)) ([7e2585c](7e2585c))
* Hard-coding of `react-native` path does not work for workspace builds ([#1930](#1930)) ([8222f3c](8222f3c))

### Features

* Add Bytes type to `Parse.Schema` ([#2001](#2001)) ([343d0d7](343d0d7))
* Add Cloud Code context accessibility to `ParseUser.logIn` ([#2010](#2010)) ([2446007](2446007))
* Add support for custom EventEmitter ([#1999](#1999)) ([ca568a6](ca568a6))
* Add support for excluding keys in `ParseQuery.findAll` ([#2000](#2000)) ([012ba4c](012ba4c))
* Add support to invoke a Cloud Function with a custom `installationId` via `Parse.Cloud.run` ([#1939](#1939)) ([eb70b93](eb70b93))
* Allow overriding `Parse.Error` message with custom message via new Core Manager option `PARSE_ERRORS` ([#2014](#2014)) ([be0c8a6](be0c8a6))
* Login with username, password and additional authentication data via `ParseUser.logInWithAdditionalAuth` ([#1955](#1955)) ([2bad411](2bad411))
@parseplatformorg
Copy link
Contributor

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

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

### Bug Fixes

* `ParseUser.linkWith` doesn't remove anonymous auth data ([#2007](#2007)) ([7e2585c](7e2585c))
* Hard-coding of `react-native` path does not work for workspace builds ([#1930](#1930)) ([8222f3c](8222f3c))

### Features

* Add Bytes type to `Parse.Schema` ([#2001](#2001)) ([343d0d7](343d0d7))
* Add Cloud Code context accessibility to `ParseUser.logIn` ([#2010](#2010)) ([2446007](2446007))
* Add support for custom EventEmitter ([#1999](#1999)) ([ca568a6](ca568a6))
* Add support for excluding keys in `ParseQuery.findAll` ([#2000](#2000)) ([012ba4c](012ba4c))
* Add support to invoke a Cloud Function with a custom `installationId` via `Parse.Cloud.run` ([#1939](#1939)) ([eb70b93](eb70b93))
* Allow overriding `Parse.Error` message with custom message via new Core Manager option `PARSE_ERRORS` ([#2014](#2014)) ([be0c8a6](be0c8a6))
* Login with username, password and additional authentication data via `ParseUser.logInWithAdditionalAuth` ([#1955](#1955)) ([2bad411](2bad411))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 4.3.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.

Add context container in Parse.Cloud.beforeLogin and Parse.Cloud.afterLogin
3 participants