adobe / aio-cli-plugin-runtime

Adobe I/O Runtime plugin for the Adobe I/O CLI
https://www.adobe.io
Apache License 2.0
15 stars 31 forks source link

[ACNA-1106] Omit old logs while continuous logs fetching #245

Closed florind-ens closed 3 years ago

florind-ens commented 3 years ago

Description

Related Issue

Fixes #225 https://github.com/adobe/aio-cli-plugin-app/issues/277

Motivation and Context

startTime is being used to filter out the logs to be printed. While --tail or any other continuously fetching param, it should only fetch logs since Date.now().

How Has This Been Tested?

Steps:

  1. cd into the generated firefly project.
  2. run aio runtime activation logs --tail.
  3. While aio runtime activation logs --tail is running, generate some logs via the firefly app. Expected: Only logs following the aio runtime activation logs --tail should be printed.

Steps:

  1. cd firefly project.
  2. run aio runtime activation logs Expected: Logs prior to aio runtime activation logs should be printed.

Screenshots (if appropriate):

Types of changes

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #245 (a7aeff0) into master (50d92b4) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #245   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           58        58           
  Lines         1568      1570    +2     
  Branches       311       312    +1     
=========================================
+ Hits          1568      1570    +2     
Impacted Files Coverage Δ
src/commands/runtime/activation/logs.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 50d92b4...a7aeff0. Read the comment docs.

shazron commented 3 years ago

@florind12 please fill in the section How Has This Been Tested?

Himavanth commented 3 years ago

Closing this as this has been dealt with in https://github.com/adobe/aio-lib-runtime/pull/67#issuecomment-902739633