OpenConext / OpenConext-manage

Stores and publishes metadata of all entities known to OpenConext
Apache License 2.0
7 stars 10 forks source link

Improve check if push succeeds #132

Open baszoetekouw opened 2 months ago

baszoetekouw commented 2 months ago

It turns out EB returns a 302 instead of a 5090 if the metadata push fails. (Meanwhile this has been fixed in https://github.com/OpenConext/OpenConext-engineblock/issues/1309)

Manage detects this as a successful push. It could be a bit more strict and only accept a 200 status as a successful push.

Or perhaps even nicer would be to implement an API in EB to request which metadata "version" (based on datetime?) it is using. In that way, Manage could also explicitly check if EB is using the version that we are expecting, and show what changes are made since the last successful push to EB.