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 tags in stats #4232

Merged
merged 4 commits into from
Mar 7, 2024
Merged

Add tags in stats #4232

merged 4 commits into from
Mar 7, 2024

Conversation

azime
Copy link
Contributor

@azime azime commented Mar 6, 2024

Jira: NAV-2814

stat_tag = MAP_JOURNEY_TAG.get(tag, stat_pb2.JOURNEY_TAG_UNKNOWN)
if stat_tag == stat_pb2.JOURNEY_TAG_UNKNOWN:
logging.getLogger(__name__).warning("Stat tag not found for {} navitia tag.".format(tag))
result.add(stat_tag)
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure it is worthwhile to add the tag JOURNEY_TAG_UNKNOWN to the stats proto message 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

I think instead of empty value, better to use this one.
We better not communicate this information to any client and use only for internal analysis.

stat_tag = MAP_JOURNEY_TAG.get(tag, stat_pb2.JOURNEY_TAG_UNKNOWN)
if stat_tag == stat_pb2.JOURNEY_TAG_UNKNOWN:
logging.getLogger(__name__).warning("Stat tag not found for {} navitia tag.".format(tag))
result.add(stat_tag)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think instead of empty value, better to use this one.
We better not communicate this information to any client and use only for internal analysis.

Copy link

sonarcloud bot commented Mar 7, 2024

@azime azime merged commit a10a8c8 into dev Mar 7, 2024
9 checks passed
@azime azime deleted the add_tags_in_stats branch March 7, 2024 15:22
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.

None yet

5 participants