-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
There was a problem hiding this 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"/> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
...eme/gouvfr/assets/js/components/AdminTable/AdminDataservicesTable/AdminDataservicesTable.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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/`), { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
No description provided.