Browse Source

CLDC-NONE: Lint fixes

CLDC-NONE-update-local-development-docs
Katherine Langford 3 weeks ago
parent
commit
2a4616a04f
  1. 1
      docs/dev_tasks/index.md
  2. 4
      docs/dev_tasks/new_sales_question.md
  3. 2
      docs/form/question.md
  4. 4
      docs/setup.md

1
docs/dev_tasks/index.md

@ -6,4 +6,3 @@ nav_order: 14
# Common dev tasks
A collection of guides for tasks that may have to be carried out repeatedly.

4
docs/dev_tasks/new_sales_question.md

@ -90,7 +90,7 @@ Copy the entry for an existing question and substitute in the text for your new
The fields that get exported in CSVs and XMLs are defined in `app/services/exports/sales_log_export_constants.rb`.
If there is not a set for POST_<year>_EXPORT_FIELDS, create one. Add your new field to the current year's set.
If there is not a set for POST\_<year>\_EXPORT_FIELDS, create one. Add your new field to the current year's set.
You may also have to update the `sales_log_export_service.rb` to correctly filter the year-specific fields.
@ -112,7 +112,7 @@ You will need to add a new `field_XXX` for the new field. In total, update the f
You may also have to add some additional validation rules in this file.
Validation for ensuring that the value uploaded is one of the permitted options is handled automatically, using the question class as the original source of truth.
Validation for ensuring that the value uploaded is one of the permitted options is handled automatically, using the question class as the original source of truth.
### 9. Update unit tests

2
docs/form/question.md

@ -6,7 +6,7 @@ nav_order: 4
# Question
*Updated for 2026.*
_Updated for 2026._
Questions are under the page level of the form definition.

4
docs/setup.md

@ -20,9 +20,9 @@ We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS version
## Instructions for Windows users
If you are working on a windows machine, you will want to install the tools on [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) as some of them are not native to windows. The instructions in these docs assume a Debian-based distribution, such as Ubuntu.
If you are working on a windows machine, you will want to install the tools on [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) as some of them are not native to windows. The instructions in these docs assume a Debian-based distribution, such as Ubuntu.
*You will see a significant performance degradation if you are running the server on WSL whilst the files are on windows.* Thus, make sure to clone the repository into your WSL instance.
_You will see a significant performance degradation if you are running the server on WSL whilst the files are on windows._ Thus, make sure to clone the repository into your WSL instance.
Some windows IDEs, such as [VSCode](https://code.visualstudio.com/docs/remote/wsl) and [RubyMine](jetbrains.com/help/ruby/remote-development-starting-page.html#run_in_wsl_ij) can connect you to WSL, which will allow you to develop as though the files were on the local windows filesystem. Ignore any reccommendations that you might see suggesting you keep the files on windows - our experience is that both tests and page loads are much slower when the files are on windows.

Loading…
Cancel
Save