Request: Allow apps to programmatically update app settings

Open
#286 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Start by comparing how app settings are handled on the developers.reddit.com app settings page and through the Devvit CLI, then trace the existing public API surface for an appropriate entry point. The issue names reddit.setSetting() as a possible interface but no files or tests. Done means apps can programmatically update settings and preserve or transform prior values as described.

Written by the indexing model from the issue text.

Description

Currently, app settings can only be updated in one of two ways: Either by using the app settings page on developers.reddit.com, or by using the Devvit CLI. I think it would be very useful to be able to update app settings programatically, via a function such as reddit.setSetting() or some similar name.

An example of how this could be very beneficial is: Let's say one of my Mod Tools app's settings is a boolean value and I want to change it to a select, to give the user/mod more options. Ideally, I'd like to base the default value of that select setting on the previous value of the boolean setting, so that when the app is updated, it doesn't break the workflow for mods.

Dominant language
TypeScript
Stars
210
Forks
88
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reddit/devvit

All issues in reddit/devvit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.