Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Adding the option to show bundle logs #291

Merged
merged 2 commits into from
Apr 3, 2018
Merged

Conversation

BrunoBernardino
Copy link
Contributor

@BrunoBernardino BrunoBernardino commented Apr 2, 2018

Also improved the zapier help logs to not show so many examples, because it pushed the helpful argument list to above the fold, which was annoying.

Closes PDE-153 and depends on
https://github.com/zapier/zapier/pull/16608

Bruno Bernardino added 2 commits April 2, 2018 15:21
Also improved the `zapier help logs` to not show so many examples, because it pushed the helpful argument list to above the fold, which was annoying.

Closes [PDE-153](https://zapierorg.atlassian.net/secure/RapidBoard.jspa?rapidView=13&projectKey=PDE&modal=detail&selectedIssue=PDE-153) and depends on
https://github.com/zapier/zapier/pull/16608
Copy link
Member

@eliangcs eliangcs left a comment

Choose a reason for hiding this comment

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

Pulled and tested. Works as expected!

I have a question, probably irrelevant to this PR, though. Isn't the default output format table? Why does zapier logs --type=bundle always give me a plain format output like the following, even if I specify --format=table?

== Log
Invoked method triggers.KEY.operation.perform
== Input
{ ... }
== Output
{ ... }
== Version
1.0.0
== Timestamp
...

<h3 id="viewing-bundle-logs">Viewing Bundle Logs</h3>
</div>
<div class="col-md-7 col-sm-12 col-height is-empty docs-code">

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: git check doesn't like the trailing whitespace here:

$ git show --oneline --check origin/pr/291
5fac9b5 (origin/pr/291, origin/feature-bundle-logs) Updating docs.
docs/index.html:3139: trailing whitespace.
+      

Copy link
Contributor Author

@BrunoBernardino BrunoBernardino Apr 3, 2018

Choose a reason for hiding this comment

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

Nice catch @wking ! That's generated by https://github.com/zapier/litdoc so if you could please report that there, it'd be great!

@BrunoBernardino
Copy link
Contributor Author

BrunoBernardino commented Apr 3, 2018

@eliangcs great question! It's because of the length of the data there (it's always quite big). Tables only work for a certain length:

if (widthForValue < 1) {
return makePlain(rows, columnDefs); // There's not enough space to display the table

@BrunoBernardino
Copy link
Contributor Author

@BrunoBernardino BrunoBernardino merged commit bbf4856 into master Apr 3, 2018
@BrunoBernardino BrunoBernardino deleted the feature-bundle-logs branch April 3, 2018 10:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants