Vision regarding the JSON interface

Aperta
#1,447 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

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
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
json, python
Ambito
api, cli

Direzione di ricerca

Esamina l’opzione --json esistente di Khal e i comandi edit e new descritti nell’issue, quindi analizza come vengono selezionati gli eventi in base al titolo. Il lavoro è considerato completato quando è documentata una visione condivisa dell’interfaccia JSON, inclusi l’ambito e il comportamento necessari per operazioni sugli eventi non ambigue.

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

Descrizione

Hello,

It's rather discussion than an issue.

A few weeks ago I noticed that Khal has got the option --json. Being excited about that feature I created a little application which shows the events of the current week. Given that, I named it Semana, which means "week" from Spanish. https://github.com/laladrik/Semana

As of now, Semana is unable to create, edit or delete events. Khal allows a user to do those things via the interactive mode (khal interactive). This is not an interesting option when you implement a client application. Apart from the interactive mode Khal provides the commands "edit" and "new". The command "edit" allows an event to be edited or deleted. This is good from a user perspective, but difficult for from a machine perspective.

The main reason is that the event, which is be edited, is determined by the search among event titles. This might be ambiguous if a user has two events with the same title. Let's imagine, the first event is on Monday, the second event is on Friday. It doesn't matter whether those events reoccur or not. Given that, the command "edit" shows both of them to the user. If there is another option to edit an event, please let me know, I might've overlooked it.

Before improving Khal to allow Semana to support the operations I have a question. Do you have any vision regarding the feature of JSON? I will align the improvement with the vision.

Lingua principale
Python
Stelle
3.1k
Fork
243
Merge medio
12g 8h
PR unite (30g)
6

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 pimutils/khal

Tutte le issue di pimutils/khal

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.