8000 Load Service: Rename Query Switches in the template and backend. · Issue #37 · dbazhenov/github-stat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Load Service: Rename Query Switches in the template and backend. #37
Open
@dbazhenov

Description

@dbazhenov

Currently on the frontend of the control panel in the HTML code, the switches are defined as Switch1, Switch2, Switch3, Switch4, for the respective:

  • Simple Query (Low Complexity)
  • Standard Query (Moderate Complexity)
  • Advanced Query (High Complexity)
  • Extreme Query (Very High Complexity)

They are defined in the same way in the Go code of the backend.

I think it is necessary to rename them into appropriate names Simple, Standard, Advanced, Extreme

This will allow to better maintain and improve the application in the future. As it will be easier for new contributors to find them based on the name.

Template
/templates/control.html
Main application files where variables are used that need to be renamed
/cmd/web/main.go
/cmd/load/main.go
Directly callable functions for switches
/internal/load/mongodb.go
/internal/load/postgres.go
/internal/load/mysql.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0