question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running editSettings() resets the discoverability settings

See original GitHub issue

When I run the following function to update the description of my subreddit, I notice that my discoverability options re-add me to /r/all.

public async updateSidebarContent(updatedContent: string): Promise<void> {
    return this.r(this.subreddit).getSettings().then(settings => {
      this.r(this.subreddit).editSettings({ 
        ...settings,
        description: updatedContent 
      })  
    })    
}

After checking the output of getSettings(...) I noticed that the only thing other than the description is a property called default_set, which seems to be tied to this discoverability option.

I considered adding this as a PR, but after checking the Reddit API docs this property doesn’t seem to be listed, although it IS listed as a property in a comment on getSettings() in Subreddit.js, so I thought I’d double-check here first if anyone knew about this property, if this property is actually the culprit, or whether there is a reason it’s not included in the SubredditSettings type before sending a PR your way.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mikebullcommented, Dec 16, 2020

That makes sense. I was a bit worried about adding some in, as they don’t seen to be referenced in the official Reddit API documentation, but I’ll probably work on getting a more complete interface pushed up at some time this weekend.

1reaction
SpyTeccommented, Dec 4, 2020

Since we’ve only done bugfixes and no features, I’ll release a patch version this weekend if everything passes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bluetooth Discoverability Settings Problem
Click on View All on the left panel of the screen. 4. Click on Hardware and Devices. 5. Click on Next and follow...
Read more >
Update index settings API | Elasticsearch Guide [8.5]
Reset an index settingedit​​ The list of per-index settings which can be updated dynamically on live indices can be found in Index modules....
Read more >
NetSuite Applications Suite - User Access Reset Tool
Defining Search and Edit Settings · Defining Hierarchies among Custom Record Values · Enabling Optimistic Locking for Custom Records.
Read more >
Authorization - Laravel - The PHP Framework For Web ...
Gates are simply closures that determine if a user is authorized to perform a given action. Typically, gates are defined within the boot...
Read more >
User and Workspace Settings - Visual Studio Code
The easiest way to reset VS Code back to the default settings is to clear your user settings.json file. You can open the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found