Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add: dataservice admin page #558

Merged
merged 8 commits into from
Oct 24, 2024
Merged

Conversation

geoffreyaldebert
Copy link
Contributor

No description provided.

Copy link
Contributor

@ThibaudDauce ThibaudDauce left a comment

Choose a reason for hiding this comment

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

👍

<p class="fr-text--bold fr-my-3v">
{{ t(`You haven't published a dataservice yet`) }}
</p>
<AdminPublishButton type="dataservice"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to add this type in AdminPublishButton otherwise it's disabled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I propose to postpone this when #559 will be merged because publishing-form does not exist for dataservice in this PR.

Copy link
Contributor

@maudetes maudetes left a comment

Choose a reason for hiding this comment

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

Nice! Seems to work nicely on the front size! 👏 ✨


export async function getDataservice(id: string) {
const res = await api.get<Dataservice>(`dataservices/${id}/`);
return res.data;
}

export async function getOrganizationDataservices(oid: string, page: number, pageSize: number, sortDirection: string) {
const resp = await api.get<PaginatedArray<Dataservice>>(getLocalizedUrl(`dataservices/`), {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think private or deleted dataservices aren't fetched on this endpoint yet.
I think we need to apply the same logic on the backend as it has been done for reuses. Ticket created: datagouv/data.gouv.fr#1549

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙏

udata_front/theme/gouvfr/datagouv-components/CHANGELOG.md Outdated Show resolved Hide resolved
@geoffreyaldebert geoffreyaldebert merged commit 3369eb2 into master Oct 24, 2024
14 checks passed
@geoffreyaldebert geoffreyaldebert deleted the feat/admin-dataservice branch October 24, 2024 15:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants