Skip to content

Same-named settings permanently breaks your application #241

@Jiralite

Description

@Jiralite

Reddit does not handle settings with the same name, regardless of the scope. This leads to your application being permanently broken.

You can achieve this by creating a devvit.json with these settings:

"settings": {
  "subreddit": {
  	"test": {
  		"type": "string"
  	}
  },
},

In the UI for any subreddit, enter a value for that setting and save.

Then, amend your devit.json to this:

"settings": {
	"subreddit": {
		"test": {
			"type": "string"
		}
	},
	"global": {
		"test": {
			"type": "string"
		}
	}
},

Start your application and you'll receive duplicate setting field errors which you cannot resolve. Subreddit settings will no longer load and you can no longer access devvit settings list or devvit settings set. You cannot amend your devvit.json's setting's names to something else and try to deploy a new version.

Your app is permanently broken.


I'd appreciate if a lurking administrator can resolve my settings for u/sky-elder, as it's not fixable by me! Also #239...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions