Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

feat(Notification): better validation #400

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

marcorombach
Copy link
Contributor

@marcorombach marcorombach commented Jun 9, 2021

  • Bekanntes Problem: bei fehlerhafter Eingabe wird nicht die gesamte pushover oder telegram Eingabe von vorne gestartet. Die Struktur von input_kontaktdaten_key macht das schwierig.

@timreibe timreibe changed the title feat(Notification) better validation feat(Notification): better validation Jun 9, 2021
@timreibe
Copy link
Owner

timreibe commented Jun 9, 2021

kann das rein? @marcorombach

@marcorombach
Copy link
Contributor Author

marcorombach commented Jun 9, 2021

kann das rein? @marcorombach

Falls das oben beschriebene Problem fürs erste akzeptabel ist, kanns rein.

Falls mir dazu eine Lösung einfällt, reiche ich die nach.

tools/its.py Outdated Show resolved Hide resolved
gui.py Show resolved Hide resolved
main.py Outdated Show resolved Hide resolved
tools/kontaktdaten.py Outdated Show resolved Hide resolved
@haslersn
Copy link
Contributor

haslersn commented Jun 9, 2021

@iamnotturner Nein, das darf auf keinen Fall rein. Hier werden die validate_-Funktionen interaktiv gemacht, aber diese gehören nicht zur UI.

@marcorombach
Copy link
Contributor Author

@iamnotturner Nein, das darf auf keinen Fall rein. Hier werden die validate_-Funktionen interaktiv gemacht, aber diese gehören nicht zur UI.

Alles klar, ich baue das so um, dass alles interaktive in update_kontaktdaten_interactive stattfindet.

Comment on lines 5 to 6
from tools.utils import telegram_validation, pushover_validation
from tools.exceptions import ValidationError, MissingValuesError
from tools import Modus
Copy link
Contributor

Choose a reason for hiding this comment

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

Am besten alphabetisch sortieren

@haslersn
Copy link
Contributor

haslersn commented Jun 9, 2021

Code sieht gut aus. Es sind aber teilweise unnötige Diffs im PR.

@marcorombach marcorombach force-pushed the notification_validation branch from ddd9a2f to 229ba51 Compare June 9, 2021 17:15
@marcorombach
Copy link
Contributor Author

Habe mal einen squash-commit gepusht

@marcorombach marcorombach force-pushed the notification_validation branch from df50ab3 to 7f2331f Compare June 9, 2021 17:39
@pancakeDevelopment
Copy link
Contributor

@marcorombach Schön umgesetzt, besonders mit der Validierung der Daten. Dadurch kann man schon im Vorhinein Fehler bei der Kommunikation über Pushover/Telegram verhindern 👍

@marcorombach marcorombach force-pushed the notification_validation branch from 7f2331f to 9d2f1dd Compare June 9, 2021 18:59
@marcorombach
Copy link
Contributor Author

@marcorombach Schön umgesetzt, besonders mit der Validierung der Daten. Dadurch kann man schon im Vorhinein Fehler bei der Kommunikation über Pushover/Telegram verhindern 👍

Danke :)

Habe gerade noch ein paar kosmetische Änderungen hinzugefügt

@sinun98
Copy link
Collaborator

sinun98 commented Jun 9, 2021

Dann ist das fertig oder @marcorombach

@marcorombach
Copy link
Contributor Author

Dann ist das fertig oder @marcorombach

Ja, ist fertig @sinun98

@sinun98 sinun98 merged commit 5087438 into timreibe:beta Jun 9, 2021
@marcorombach marcorombach deleted the notification_validation branch June 10, 2021 12:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants