Feature: Limit rules for to a particular duration

Aperta
#761 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma

Direzione di ricerca

Inizia leggendo la specifica delle policy e il comportamento esistente della durata delle policy, quindi esamina la proposta sulla durata ISO 8601 in questo issue. Definisci come deve essere rappresentata e rispettata durante gli audit la durata di una regola, inclusi gli intervalli ricorrenti. Il lavoro è completato quando la specifica delle policy descrive chiaramente la nuova funzionalità delle regole e il relativo impatto sulla compatibilità.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement Policy
Motivation

There are restrictions to usage of public curb which vary over the year.
E. g. in Germany, there is the famous Oktoberfest (which we'll be assuming to happen in October during the course of this issue, though it's not ;) ).
Currently, the policy features the ability to be limited to a particular duration. However, the rule inside a policy does not.
Therefore, if an agency currently wants to publish special set of rules which will be valid starting and ending within an already known timeframe, the agency needs to

  1. terminate the current policy before start of the additional rules
  2. create a new policy which includes the additional rules at the very top
  3. re-install the original policy after the end of the period

This is error prone, hard to visualize on a UI and tricky for operators.

Solution proposal

The rule could feature a duration property as per ISO_8601. This would not only allow to define a duration, but also recurring intervals.

Adding the duration to the rule of the same policy does not largely increase complexity as it is only respected during auditing.

Is this a breaking change

This is not breaking in the sense of technical breaking changes. However, those new restrictions to a rule would create effort at the provider's end => a major version bump is probably necessary.

Impacted Spec

For which spec is this feature being requested?

  • policy
Describe alternatives you've considered

Another option was to add a relationship between policies (e. g. "this special policy extends the following one"). If a rule from a special policy is applicable, the rules of the extended policy would not be evaluated. However, this idea was discarded as it introduces a new level of complexity.

Lingua principale
Nessun dato sulla lingua
Stelle
753
Fork
255
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openmobilityfoundation/mobility-data-specification

Tutte le issue di openmobilityfoundation/mobility-data-specification

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.