Conversation
rerendering debug console on props change Error viewer console completed
Copy file spec completed Ngrok tunnel action spec updated
Ngrok module tests Testing tunnel error generation and capture scenarios
Code cleanup Renaming functions, test names, using shorthands wherever applicable
Updated icon for ngrok Status
Lock files updated after pull from master
|
@srinaath will remove the clients package-lock.json |
|
|
||
| # dependencies | ||
| /node_modules | ||
| package-lock.json |
There was a problem hiding this comment.
Maybe we could instead add an entry to the root level .gitignore that ignores every lock file except for the root one?
/packages/**/package-lock.json
and then delete the sub-root-level lock files?
| logPath: string; | ||
| postmanCollectionPath: string; | ||
| tunnelStatus: TunnelStatus; | ||
| lastTunnelStatusCheckTS: string; |
There was a problem hiding this comment.
consider expanding to lastTunnelStatusCheckTimestamp for readability
| fs.copyFile(sourcePath, destinationPath, err => { | ||
| if (err) { | ||
| // eslint-disable-next-line no-console | ||
| console.error(`Error copying file: ${err}`); |
There was a problem hiding this comment.
maybe move this to the reject call so that it is surfaced to whatever context calls it:
reject(Error copying file: ${err});
| // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
| // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
|
||
| export default { |
There was a problem hiding this comment.
we prefer to use explicitly named exports in this project:
export const PostmanNgrokCollection = { ... };
| protected async copyFile(sourcePath: string, destinationPath: string) { | ||
| try { | ||
| await copyFileAsync(sourcePath, destinationPath); | ||
| return true; | ||
| } catch (ex) { | ||
| return false; | ||
| } | ||
| } |
There was a problem hiding this comment.
Is there a reason this returns true and false? The only code that calls this in your PR calls it and doesn't worry about the return value because it is being called as the resolver of the executeCommand() action
| await this.getNgrokInspectUrl(options); | ||
| return this.runTunnel(options); | ||
| const tunnelInfo: { url; inspectUrl } = await this.runTunnel(options); | ||
| this.intervalForHealthCheck = setInterval(() => this.checkTunnelStatus.bind(this)(tunnelInfo.url), 60000); |
There was a problem hiding this comment.
A small optimization could be to pull the code that binds the function out of the setInterval() call so that .bind() is not called every time the function fires per interval:
const boundCheckTunnelStatus = this.checkTunnelStatus.bind(this);
this.intervalForHealthCheck = setInterval(() => boundCheckTunnelStatus(tunnelInfo.url), 60000);
1. Added space after breaks 2. Seperating container and actual visual component 3. Removing nbsp 4. Adding package-locks to gitignore Signed-off-by: Srinaath Ravichandran <[email protected]>
1.Using named exports 2. Returning errors from rejects 3. Removed dev artifacts Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
1. Added space after breaks 2. Seperating container and actual visual component 3. Removing nbsp 4. Adding package-locks to gitignore Signed-off-by: Srinaath Ravichandran <[email protected]> Pre feedback addressed 1.Using named exports 2. Returning errors from rejects 3. Removed dev artifacts Signed-off-by: Srinaath Ravichandran <[email protected]> Made sure all pacjage locks are removed and spacing between cases Signed-off-by: Srinaath Ravichandran <[email protected]> Untracked Package Locks Signed-off-by: Srinaath Ravichandran <[email protected]> Untracked and deleted package locks Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
tonyanziano
left a comment
There was a problem hiding this comment.
Some more minor comments.
Comments tag removed Typos fixed Signed-off-by: Srinaath Ravichandran <[email protected]> Removed unused functions Signed-off-by: Srinaath Ravichandran <[email protected]>
| return ( | ||
| <> | ||
| <legend> | ||
| Looks like you have hit your free tier limit on connections to your tunnel. These are few solutions. |
There was a problem hiding this comment.
missed this one last time: These are few solutions.
Maybe try something like:
(Consider | Try) the following solutions.
or
Below you will find several possible solutions.
tonyanziano
left a comment
There was a problem hiding this comment.
One small comment. Once that's fixed I think this is good to go!
Signed-off-by: Srinaath Ravichandran <[email protected]>
Thanks @tonyanziano |
Ngrok Debug Console
Added console window to track tunnel errors
Pinned React version
More unit tests coverage in future PR's