Skip to content

[Bug]: Posting eula: false to /api/settings suppresses the first run dialog #4340

@eerhardt

Description

@eerhardt

Preconditions (Any important steps we need to know)

Steps to reproduce (How to reproduce what you found step by step)

  1. docker run --name redis-insights -p 5540:5540 -d redis/redisinsight
  2. Before hitting the app, Send a PATCH request to /api/settings with the following:
{
  "agreements": {
    "eula": false,
    "analytics": false,
    "notifications": false,
    "encryption": false
  }
}
  1. Navigate to the UI - http://localhost:5540/

Actual behavior (A short description of what you found)
The "first run" dialog isn't popped when first hitting the UI

Expected behavior (A short description of what you expected to find)
I expect to get this dialog because the EULA wasn't accepted yet:

Image

Additional context (Operating system, version of Redis Insight, Redis database version, Redis module version, database type, connection type, logs, or any other information)

The reason I am sending this request is to work around #3452. I need to add a redis connection using a password, but that doesn't work unless encryption: false gets set in the settings. And it isn't valid to send a settings request without specificing eula. I don't want to auto accept the EULA.

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