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

chore: configure digitraffic vehicle realtime #4891

Merged
merged 6 commits into from
Nov 30, 2023
Merged

chore: configure digitraffic vehicle realtime #4891

merged 6 commits into from
Nov 30, 2023

Conversation

tekoiv
Copy link
Contributor

@tekoiv tekoiv commented Nov 21, 2023

Proposed Changes

  • Configured Digitraffic vehicle realtime
  • Fixed a bug where intercity journeys resulted in realtime topics with wrong feed ids

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build
  • Code coverage does not decrease (unless measured incorrectly)

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in a Jira issue
  • Merge the pull request

@tekoiv tekoiv marked this pull request as draft November 22, 2023 11:32
Comment on lines 139 to 145
// If a general topic is returned, at least limit it to instances feed ids
if (topics[0] === '/gtfsrt/vp/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/#') {
const { feedIds } = actionContext.config;
topics = feedIds.map(
feedId => `/gtfsrt/vp/${feedId}/+/+/+/+/+/+/+/+/+/+/+/+/+/+/#`,
);
}
Copy link
Member

Choose a reason for hiding this comment

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

This topic code is a bit too specific to this one MQTT broker. Couldn't it be possible to somehow define in the Map.js startClient that we should subscribe to these topics?

@optionsome
Copy link
Member

I don't know if these are somehow already disabled for kela but I think we should disable vehicle showing there if it already isn't.

@tekoiv tekoiv marked this pull request as ready for review November 29, 2023 08:12
@optionsome optionsome merged commit b157c05 into v3 Nov 30, 2023
6 checks passed
@optionsome optionsome deleted the DT-5714 branch November 30, 2023 09:47
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