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

refactor: Dry handleAuthData for safer code maintenance in the future #9025

Merged
merged 6 commits into from
Mar 19, 2024

Conversation

Moumouls
Copy link
Member

Pull Request

Issue

Duplicated code related to an old GHSA on auth system. A quick dry refactor.

Closes: NONE

Approach

A small DRY refactor for easiest, safer futur code maintenance on auth.

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)
  • Add security check
  • Add new Parse Error codes to Parse JS SDK

Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title feat: dry handleAuthData for safer code maintenance in the futur feat: Dry handleAuthData for safer code maintenance in the futur Mar 17, 2024
Copy link

parse-github-assistant bot commented Mar 17, 2024

Thanks for opening this pull request!

  • ❌ Please link an issue that describes the reason for this pull request, otherwise your pull request will be closed. Make sure to write it as Closes: #123 in the PR description, so I can recognize it.

@Moumouls Moumouls changed the title feat: Dry handleAuthData for safer code maintenance in the futur refactor: Dry handleAuthData for safer code maintenance in the futur Mar 17, 2024
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.75%. Comparing base (2612a38) to head (1b492a9).
Report is 141 commits behind head on alpha.

❗ Current head 1b492a9 differs from pull request most recent head a5b97d0. Consider uploading reports for the commit a5b97d0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##            alpha    #9025      +/-   ##
==========================================
- Coverage   94.31%   93.75%   -0.57%     
==========================================
  Files         186      186              
  Lines       14770    14676      -94     
==========================================
- Hits        13931    13760     -171     
- Misses        839      916      +77     

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

@mtrezza mtrezza changed the title refactor: Dry handleAuthData for safer code maintenance in the futur refactor: Dry handleAuthData for safer code maintenance in the future Mar 17, 2024
@mtrezza mtrezza changed the title refactor: Dry handleAuthData for safer code maintenance in the future refactor: Dry handleAuthData for safer code maintenance in the future Mar 17, 2024
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
src/RestWrite.js Outdated Show resolved Hide resolved
src/RestWrite.js Outdated Show resolved Hide resolved
spec/ParseUser.spec.js Outdated Show resolved Hide resolved
spec/AuthenticationAdaptersV2.spec.js Outdated Show resolved Hide resolved
spec/AuthenticationAdaptersV2.spec.js Outdated Show resolved Hide resolved
spec/AuthenticationAdaptersV2.spec.js Outdated Show resolved Hide resolved
@mtrezza mtrezza merged commit 6d4663b into parse-community:alpha Mar 19, 2024
22 of 23 checks passed
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.0.0-alpha.30

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Mar 20, 2024
@parseplatformorg
Copy link
Contributor

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

@parseplatformorg
Copy link
Contributor

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

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Jun 30, 2024
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 7.1.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Jun 30, 2024
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.

3 participants