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

Add com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0 (close #1131) #1132

Closed
wants to merge 2 commits into from

Conversation

AlexBenny
Copy link
Contributor

As explained in the related issue, here is the schema for application_lifecycle entity.
The entity is attached to all the events by the tracker based on the app state (foreground or background).

For reference iOS PR: snowplow/snowplow-ios-tracker#637

Copy link
Contributor

@chuwy chuwy left a comment

Choose a reason for hiding this comment

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

Happy to give a green tick if you think default is justified.

"isVisible": {
"description": "Indicates if the app is in foreground state (true) or background state (false)",
"type": "boolean",
"default": true
Copy link
Contributor

@chuwy chuwy Sep 15, 2021

Choose a reason for hiding this comment

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

I certainly don't have anything against default, but just in case - it won't be used anywhere (Iglu doesn't support it explicitly). Thus tables will be generated as NOT NULL and if user doesn't provide it - the loading will fail. Some more context:

We can use it as purely informational, although I afraid it encourages bad behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree 👍 I don't even know where I got it. That value is always set in the tracker so no need to specify this here.

Copy link
Contributor

@chuwy chuwy left a comment

Choose a reason for hiding this comment

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

LGTM! I'll squash the commits in final R127 PR.

@chuwy
Copy link
Contributor

chuwy commented Sep 20, 2021

Closing in favor of #1139

@chuwy chuwy closed this Sep 20, 2021
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