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

CLI: Fix issues related to local version fallback #9429

Merged
merged 3 commits into from
May 4, 2021

Conversation

medikoo
Copy link
Contributor

@medikoo medikoo commented May 4, 2021

Closes: #9428

Additionally changed the name of the cache folder for telemetry payload. This may introduce slight friction where after upgrade some stored payload will no longer be send (as new version will look into new version).

Still I assume that loss will be negligible, and renaming of a folder is the only way to fix the issue, where old global sends all cached payload on any command and local fallback send same with sls deploy

Fixes the issue for global to local fallback case, where older global which send cache on every command was sending same telemetry as local
@medikoo medikoo force-pushed the 0504-fix-payload-generation branch from 6a548f6 to 37dd0cb Compare May 4, 2021 20:03
@codecov
Copy link

codecov bot commented May 4, 2021

Codecov Report

Merging #9429 (37dd0cb) into master (2c2c77f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9429   +/-   ##
=======================================
  Coverage   86.90%   86.90%           
=======================================
  Files         321      321           
  Lines       11968    11968           
=======================================
  Hits        10401    10401           
  Misses       1567     1567           
Impacted Files Coverage Δ
lib/Serverless.js 90.85% <ø> (ø)
lib/utils/telemetry/cache-path.js 100.00% <100.00%> (ø)

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 2c2c77f...37dd0cb. Read the comment docs.

@medikoo medikoo requested a review from pgrzesik May 4, 2021 20:07
@medikoo medikoo merged commit da476ad into master May 4, 2021
@medikoo medikoo deleted the 0504-fix-payload-generation branch May 4, 2021 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'TypeError: Cannot read property "'options'" of undefined' after updating to 2.39.1
1 participant