Skip to content

Conversation

@brevilo
Copy link
Contributor

@brevilo brevilo commented Jul 15, 2024

Fixes #5682

Description of the Change
See referenced issue for motivation and approach. The idea is to allow for preference elements following the "correct" venue, instead of just skipping them. Yes, this makes the parsing a tiny more inefficient but the extra fault-tolerance should be more than worth it. The augmented conditionals mean that any tag is set only once unless its the one for the host's venue. That means:

  • The default value gets set if there isn't any value yet
    • This excludes any default value that follows a venue-specific one
  • (Only) The "correct" venue's value gets set regardless and takes precedence

Note, I haven't yet covered the following elements because I need your input:

  • day_prefs: do they need special treatment? Are they also venue-specific?
  • network_wifi_only: it's part of the GLOBAL_PREFS_MASK mask but it's not being set. Why?

Release Notes
Rrelax XML parser to allow global preferences following venue(s)

* TODO: day_prefs, network_wifi_only
* See: #5682
@brevilo brevilo marked this pull request as draft July 18, 2024 09:33
@brevilo brevilo changed the title WIP: relax XML parser to allow global preferences following venue(s) Relax XML parser to allow global preferences following venue(s) Jul 18, 2024
@brevilo brevilo closed this Jul 23, 2024
@brevilo brevilo deleted the ob-fix-relax-xml-parser branch July 23, 2024 20:14
@AenBleidd AenBleidd added this to the Client/Manager 8.0.5 milestone Jul 24, 2024
@AenBleidd AenBleidd modified the milestones: Client/Manager 8.0.5, Client/Manager 8.2.0 Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Relax XML parser to handle global preferences gracefully

2 participants