parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

feat: add Parse Server config to standard request object

Open Moumouls opened this issue 3 years ago • 2 comments

New Pull Request Checklist

  • [x] I am not disclosing a vulnerability.
  • [x] I am creating this PR in reference to an issue.

Issue Description

Related issue: #7869

Approach

Forward the Parse Server Config through the standard request object available in all Parse Cloud functions/triggers.

TODOs before merging

  • [x] Add tests
  • [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
  • [ ] Add security check
  • [x] A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)

Moumouls avatar Jun 24 '22 10:06 Moumouls

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

Codecov Report

Merging #8069 (56d6516) into alpha (42c9543) will decrease coverage by 0.00%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            alpha    #8069      +/-   ##
==========================================
- Coverage   94.14%   94.14%   -0.01%     
==========================================
  Files         182      182              
  Lines       13691    13692       +1     
==========================================
  Hits        12890    12890              
- Misses        801      802       +1     
Impacted Files Coverage Δ
src/Routers/FunctionsRouter.js 94.11% <ø> (ø)
src/cloud-code/Parse.Cloud.js 99.20% <ø> (ø)
src/triggers.js 95.34% <ø> (ø)
src/Controllers/HooksController.js 94.73% <100.00%> (+0.04%) :arrow_up:
src/batch.js 92.98% <0.00%> (-1.76%) :arrow_down:
src/RestWrite.js 94.42% <0.00%> (-0.16%) :arrow_down:
src/ParseServerRESTController.js 98.48% <0.00%> (+1.51%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 42c9543...56d6516. Read the comment docs.

codecov[bot] avatar Jun 24 '22 10:06 codecov[bot]

lets close this one since @dblythy implemented the singleton strategy

Moumouls avatar Nov 14 '22 23:11 Moumouls