Skip to content

Update README.md and example-config.toml to be more accurate #112

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

randito78
Copy link

Added a note about necessary FullStory API permission levels for the API key as well as change the note for StartTime as it errors with the pre-existing empty string while casting to time with the error Error: cannot parse "'2020-09-01T20:41:15Z'" as "".

Recently went through setting up hauser for my business and ran into a couple of issues to I wanted to make sure no one else did as well.

Update example-config.toml to require StartTime to not mislead those using the example. As of https://github.com/fullstorydev/hauser/pull/95/files StartTime is required or it returns an error such as Error: cannot parse "'2020-09-01T20:41:15Z'" as "".
Copy link
Collaborator

@camphillips22 camphillips22 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! Just one comment, otherwise LGTM.

# This should be an timestamp like with the followin format: 2018-12-27T18:30:00Z.
# If start time is empty, this will default to 30 days in the past.
StartTime = ""
StartTime = <Start time for data exports in the following format: 2018-12-27T18:30:00Z>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of using a value that is definitely not parseable, I would prefer that we use the "zero" time value for go

Suggested change
StartTime = <Start time for data exports in the following format: 2018-12-27T18:30:00Z>
# If not set or left as the zero time, this will default to 30 days in the past.
# StartTime = "0001-01-01T00:00:00Z"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants