opendatateam / udata

Customizable and skinnable social platform dedicated to open data.
http://udata.readthedocs.org
GNU Affero General Public License v3.0
238 stars 87 forks source link

Add 'archived' field for reuse model and endpoints #3088

Closed bolinocroustibat closed 4 weeks ago

bolinocroustibat commented 1 month ago

Closes https://github.com/datagouv/data.gouv.fr/issues/1273

Also:

bolinocroustibat commented 4 weeks ago

👍

Could you add a test for getting archived reuses? I know I will modify this code in my PR #3066 so it could be cool to have a test checking this new feature :-)

OK I'll try! Not sure I know how frontend tests work yet though :)

bolinocroustibat commented 4 weeks ago

👍 Could you add a test for getting archived reuses? I know I will modify this code in my PR #3066 so it could be cool to have a test checking this new feature :-)

OK I'll try! Not sure I know how frontend tests work yet though :)

Since we want the API to return even archived reuses, we cannot test on the API return, but added a test for archived model field behaviour. LMKWYT