Skip to content

Settings Revamp #2

@dvoraen

Description

@dvoraen

Overview

Rework the @settings command so that the character and account settings are stored in the database as (categorized) models.

To-do

Database

  • Create a Django app for settings.
  • Create the models for the data.
  • Configure the admin portal for the new models.
  • Create initial migrations.
  • Write data migration as a separate migration.
    • Create objects for existing characters.
    • Set data from existing settings.
    • Delete attributes and tags that functioned as settings.
    • Write reversal method in case something goes wrong.

Implementation

  • Remove old settings command from use.
  • Write helper methods for models.
  • Write utils methods for acquiring settings from database.
  • Implement CmdSettings functionality.
  • Update character creation to create settings models for the new character.

Refactor Settings Code

account settings

  • apply_output_newline
  • allow_bb_altread
    • update web template
  • strip_ansi_names
  • strip_ascii_text

general settings

  • brief_mode
  • private_mode
  • verbose_where_mode
  • ic_only_mode
  • show_model_emits
  • show_weather_emits

rp settings

  • apply_emit_label
  • apply_pose_break
  • pose_quote_color
  • pose_mention_color
  • place_name_color

comm settings

  • highlight_chan_mention
  • show_msg_text
  • show_msg_notice
  • show_msg_delivery

Metadata

Metadata

Assignees

Labels

trackingIssues that contain task lists.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions