Open Weiko opened 3 months ago
@Weiko I would like to work on it.
@Weiko @charlesBochet @FelixMalfait Can I take this up? Seems quite straightforward. I see we need to remove the isCustom
from the twenty-server from class UpdateFieldInput
. And also remove it from UpdateFieldInput
defined on frontend. I don't see any tests breaking by this change from code, but if would be there, will fix it too.
@prateekj117 thanks for providing a plan!
I think that could work. We want to do it both at the field level and the object level. We need to make sure custom objects are always created with isCustom=true then, and that standard objects are always created with isCustom=false, even if it's not set by the api, which means it needs to be set at a different level in code.
Currently the default value for isCustom
is false, it might have been slightly easier if the value had been true
, but not sure. TBC if a change is needed.
Assigning you if you're still up for it?
@Faisal-imtiyaz123 thanks again! don't hesitate to give directions when you're looking to take something, that way it's helpful to validate it together.
@Weiko @FelixMalfait I would like to work on this issue.
Maybe @Faisal-imtiyaz123 wants to grab it first? Since @prateekj117 didn't reply. Otherwise @Mohamedkaif10 go ahead in case @Faisal-imtiyaz123 doesn't reply in 24hrs. Thanks to all of you!
@FelixMalfait You may assign it to @Mohamedkaif10 .
Done! @charlesBochet marked this as a good first issue and it's doable, but I wouldn't say it's very easy as it requires at least a good understanding of what standard VS custom objects are and how they behave differently
Yeah now , i removed isCustom
from the twenty-frontend(graphql.ts file) and also from mutation. suggest if other changes needed ..@FelixMalfait
/oss.gg 150
Thanks for opening an issue! It's live on oss.gg!
/assign
Assigned to @anand1564! Please open a draft PR linking this issue within 48h â ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đšī¸ Excited to have you ship this đ
@anand1564, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.
/assign
This issue is already assigned to another person. Please find more issues here.
@anand1564, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.
Assigned to @YashMehetre! Please open a draft PR linking this issue within 48h â ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đšī¸ Excited to have you ship this đ
@YashMehetre, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.
@YashMehetre, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.
/assign
Assigned to @PreethiMaddikunta! Please open a draft PR linking this issue within 48h â ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đšī¸ Excited to have you ship this đ
/assign
Assigned to @m3tal10! Please open a draft PR linking this issue within 48h â ī¸ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically đšī¸ Excited to have you ship this đ
@PreethiMaddikunta, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.
Bug Description
Many part of the code assume that isCustom:true is from the user input and should be ignore whereas isCustom:false is standard and should be kept in sync with the codebase entities. However, even if an object or a field is automatically created as isCustom: true via the API, we can also update those field/objects and change that value which will break a few parts of the app including metadata sync scripts.
This input should not be possible, isCustom should not be available.
Technical inputs
Do not expose isCustom in the graphql input field type