Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AliKdhim87
Copy link
Contributor

@AliKdhim87 AliKdhim87 commented Feb 26, 2025

issues:

- 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.
Copy link

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cms-frameless-io ❌ Failed (Inspect) Feb 26, 2025 2:50pm
tiptap ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 26, 2025 2:50pm

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...e-objecten-api/src/utils/concatenateFieldValues.ts 100.00% <ø> (ø)

- [#1046](https://github.com/frameless/strapi/issues/1046).
- [#1040](https://github.com/frameless/strapi/issues/1040).

**Wijzegingen**:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
**Wijzegingen**:
**Wijzigingen**:


Update VAC-collectiestructuur

**GitHub Issue frameless**:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
**GitHub Issue frameless**:
**GitHub Issue Frameless**:

geometry: null,
endAt: null,
registrationAt: createdAt,
const VacResponse = getVacData({
Copy link
Member

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',
Copy link
Member

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'> {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"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) => {
Copy link
Member

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) => {
Copy link
Member

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';
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants