LinusEkstrom / AddOn.Episerver.Settings

This Episerver addon tries to bring a standardized way of managing settings for Episerver solutions.
MIT License
11 stars 6 forks source link

Duplicate entries of settings shows up if any changes are done in settings file #70

Open vishakha0618 opened 1 year ago

vishakha0618 commented 1 year ago

We are using AddOn.Episerver.Settings v4.0.0. When we create a global setting and apply some changes to it after the setting has been created, like changing the setting name or the property name, the settings don't work as expected.For example , it does not allow us to add values.

What is the root cause for this and how can this be resolved?

unnamed

vansterhant commented 1 year ago

Is it possible for you to share the code for the setting?

vishakha0618 commented 1 year ago

Here's the code for settings file

SchoolGradeLevelSettings : [image: image.png]

SchoolGradeLevelItem :[image: image.png]

Thanks and Regards, Vishakha Tyagi

On Thu, Aug 31, 2023 at 6:17 PM vansterhant @.***> wrote:

Is it possible for you to share the code for the setting?

— Reply to this email directly, view it on GitHub https://github.com/LinusEkstrom/AddOn.Episerver.Settings/issues/70#issuecomment-1700975860, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASOKJ4SL7R2OZWQXXU7DH3DXYCBW7ANCNFSM6AAAAAA4FXNSAA . You are receiving this because you authored the thread.Message ID: @.***>

vansterhant commented 1 year ago

The images do not seem to have come through when sent as email attachments.

Can you post directly into the thread on GitHub instead? Or even better, as text :-)

kmgainey commented 3 months ago

I am experiencing the same error. Has anyone learned anything more on this?

If I am to understand correctly, that changing the "settings file" (SchoolGradeLevelSettings here?) triggers this problem?

Thanks, Kevin

LinusEkstrom commented 2 months ago

@kmgainey Could you post an example repro of how you trigger this, for instance code for settings before the change and what changes you do the to the settings class so that we can reproduce the issue to be able to find the cause.

kmgainey commented 2 months ago

@LinusEkstrom, I wish I could, but cannot. I was only getting this error in our production (DXP) environment, and could not reproduce it anywhere else. I suspect it was data related. The values I saved were request filters which contained slashes, etc. I entered dozens of values and don't have a specific list of what I entered. I later changed my Settings class which worked on non-prod environments (with different entries), but deploying that to production appears to be what triggered the issue. I have not revisited it since.

LinusEkstrom commented 2 months ago

@kmgainey Thanks for getting back with more info. I'll let the ticket be open but have a hard time to see that it has to do with the settings system since it just uses the standard Optimizely property system.