Skip to content

Conversation

@jack092123
Copy link
Contributor

@jack092123 jack092123 commented Jan 22, 2021

New Pull Request Checklist

Issue Description

It seems schemaCacheTTL ParseServerOption is not working. It still follows cacheAdapter's setting.

Related issue: closes #7119

Approach

Pass the schemaCacheTTL config to the cacheController while setting the schema cache.

TODOs before merging

  • Add test cases
  • Add entry to changelog

@codecov
Copy link

codecov bot commented Jan 22, 2021

Codecov Report

Merging #7138 (5793b85) into master (e592212) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7138      +/-   ##
==========================================
+ Coverage   93.90%   93.92%   +0.02%     
==========================================
  Files         169      169              
  Lines       12535    12535              
==========================================
+ Hits        11771    11774       +3     
+ Misses        764      761       -3     
Impacted Files Coverage Δ
src/Controllers/SchemaCache.js 100.00% <100.00%> (ø)
src/Controllers/DatabaseController.js 95.61% <0.00%> (-0.15%) ⬇️
src/RestWrite.js 93.84% <0.00%> (+0.16%) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 93.51% <0.00%> (+0.67%) ⬆️

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 e592212...5793b85. Read the comment docs.

@dplewis
Copy link
Member

dplewis commented Jan 22, 2021

Can you write a test for when TTL expires?

Copy link
Member

@davimacedo davimacedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. @dplewis any other comment?

@dplewis dplewis merged commit f846dea into parse-community:master Jan 25, 2021
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Jan 29, 2021
…7138)

* Add Test case for checking SchemaCacheTTL

* Fix schemaCacheTTL not working issue

* Add Test case for TTL expires

Co-authored-by: Roach Chang <roach.chang@aoitek.com>
@parseplatformorg
Copy link
Contributor

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

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Nov 1, 2021
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.0.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Mar 14, 2022
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-beta Released as beta version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"schemaCacheTTL" ParseServerOption is not working

4 participants