Redesign page + Webhook notifications #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "facelift"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
webhook_urlwebhook_urlis specified, simple messages including the title and company as well as a link back to the Jobbörse are sent whenever a job offer is made public (see screenshots attached)More screenshots:
Der Code sieht im allgemeinen gut aus, ich jab ein paar Anmerkungen hinterlassen.
Graphisch sieht es größtenteils auch gut aus,
ich finde den Header jedoch etwas überfüllt.
@ -16,6 +16,7 @@ actix-files = "0.6.2"actix-web = "4.3.0"actix-session = { version = "0.7.2", features = ["cookie-session"] }actix-multipart = "0.5.0"awc ={ version = "3.2.0", features = ["openssl"] }I try to use rustls for tls instead of openssl as it is annoying to get working on windows see the comment above the ldap3 dependency. Does awc support that as an alternative?
Also we now have two tls libraries in the dependencies which will bloat the binary and intermediate compile artefacts and we already had problems with the size when compiling on metabo as we only have ~2GB in /tmp.
Ok, I seem to have overlooked that comment. I have switched to rustls now.
@ -44,0 +48,4 @@company: entry.offering_party.to_owned(),link: entry.highlight_link(&req)?,};crate::webhook::send_new_offer_message(&hb, webhook_url.to_owned(), &data)Not aborting because the webhook failed is what I would expect, but it might be good to log the error instead of just ignoring it.
This is now being logged directly inside the function.
@ -37,6 +37,7 @@ pub(crate) struct ProgramConfig {pub(crate) login_provider: LoginProviderConfig,#[serde(skip_serializing_if = "Option::is_none", default)]pub(crate) email: Option<EmailConfig>,pub(crate) webhook_url: Option<String>,Add a
#[serde(default)]attribute for the added field so that it will default toNoneif the field is absent, instead of failing to deserialize the config.Also if the
webhook_urlneed to be a valid urlurl::Urlmight be better thanStringso that the validity is checked at deserialization time.Das mit dem überfüllten Header stimmt, das werde ich aber erstmal nicht ändern. In der Praxis sind da auch nicht ganz so viele Buttons (Test fehlt), aber da müsste ich alles nochmal in Header und Footer trennen.
c2d1c08b69to1406682b9cThe list of third-party dependencies needs to be rebuilt. I have seen the script, but the file seems to actually be stored in git-lfs at github.com?
They should be in git-lfs here in gitea and the web interface is showing me the file as expected.
Would be good if the list of third-party dependencies/licenses could be updated as noted, but otherwise this looks good to me 👍
New commits pushed, approval review dismissed automatically according to repository settings
The VSCode UI just displayed it weirdly. 🤷♂️