-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the vac vraag field location #1054
base: main
Are you sure you want to change the base?
Conversation
- Moved the `antwoord` field to a higher level in the vac collection. - Kept the old field temporarily for data migration. - This change allows Strapi to use vraag as the entry label in the dashboard.
…erige-objecten-api
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
- [#1046](https://github.com/frameless/strapi/issues/1046). | ||
- [#1040](https://github.com/frameless/strapi/issues/1040). | ||
|
||
**Wijzegingen**: |
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.
**Wijzegingen**: | |
**Wijzigingen**: |
|
||
Update VAC-collectiestructuur | ||
|
||
**GitHub Issue frameless**: |
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.
**GitHub Issue frameless**: | |
**GitHub Issue Frameless**: |
geometry: null, | ||
endAt: null, | ||
registrationAt: createdAt, | ||
const VacResponse = getVacData({ |
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.
Het is geen interface
, dus ik stel voor dat je dit als vacResponse
schrijft
@@ -70,7 +70,7 @@ export const objectsResponseData = ({ type }: { type?: 'kennisartikel' | 'vac' } | |||
status: 'actief', | |||
antwoord: | |||
'U moet een afspraak maken bij de gemeente, uw identiteitsbewijs meenemen en een recente pasfoto aanleveren.', | |||
doelgroep: 'eu_burger', | |||
doelgroep: 'eu-burger', |
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.
Hoe komt de aanpassing van _
naar -
? Is dit een breaking change voor acc/prod?
vacSchemaURL: string; | ||
serverURL: string; | ||
} | ||
interface MapVAcItemProps extends Pick<GetVacDataProps, 'serverURL' | 'vacSchemaURL'> { |
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.
interface MapVAcItemProps extends Pick<GetVacDataProps, 'serverURL' | 'vacSchemaURL'> { | |
interface MapVacItemProps extends Pick<GetVacDataProps, 'serverURL' | 'vacSchemaURL'> { |
en natuurlijk ook op de andere plekken aanpassen
@@ -22,7 +22,7 @@ | |||
"vraag": { | |||
"edit": { | |||
"label": "Vraag", | |||
"description": "", | |||
"description": "🔔 Let op: Dit veld is verouderd en zal binnenkort worden verwijderd. Gebruik in plaats daarvan het nieuwe veld bovenaan.", |
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.
"description": "🔔 Let op: Dit veld is verouderd en zal binnenkort worden verwijderd. Gebruik in plaats daarvan het nieuwe veld bovenaan.", | |
"description": "🔔 Let op: Dit veld is verouderd en zal binnenkort worden verwijderd. Verplaats de informatie naar het veld \"Vraag\" bovenaan.", |
|
||
const getAntwoord = (antwoord: Antwoord[]): string => (Array.isArray(antwoord) ? concatenateFieldValues(antwoord) : ''); | ||
|
||
const createVacRecord = (item: DataVacItem, vacUrl: string, antwoord: string) => { |
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.
Hoe weten we of de return value compleet is? Is hier geen typescript interface voor?
|
||
const getAntwoord = (antwoord: Antwoord[]): string => (Array.isArray(antwoord) ? concatenateFieldValues(antwoord) : ''); | ||
|
||
const createVacRecord = (item: DataVacItem, vacUrl: string, antwoord: string) => { |
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.
Hier verwacht ik een return type
@@ -0,0 +1,52 @@ | |||
import kebabCase from 'lodash.kebabcase'; |
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.
Klopt het dat de filename getVacData copy.ts
is? Met een spatie?
issues: