Housekeeping (#3816)

* housekeeping

* bad commit

* fix bad
This commit is contained in:
Bruce Berrios 2022-12-08 08:46:17 -05:00 committed by GitHub
parent b1ddd57e11
commit bdd6ce0ffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 6 deletions

View file

@ -3,6 +3,9 @@ name: Monkey CI
env:
NODE_VERSION: "16.13.2"
permissions:
pull-requests: write
on:
pull_request:
branches: [master]
@ -154,7 +157,7 @@ jobs:
if: ${{ always() && contains(needs.*.result, 'failure') && github.ref != 'refs/heads/master' }}
steps:
- name: Comment on PR
uses: actions/github-script@v5
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |

View file

@ -12,7 +12,7 @@
## Getting Started
When contributing to Monkeytype, it's good to know our best practices, tips, and tricks. First, Monkeytype is written in ~~JavaScript~~ TypeScript, CSS, and HTML (in order of language usage within the project); thus, we assume you are comfortable in these languages or have basic knowledge of them. Our backend is in NodeJS and we use MongoDB to store our user data. Firebase is used for authentication. Redis is used to store daily leaderboard data. Furthermore, we use Prettier to format our code.
When contributing to Monkeytype, it's good to know our best practices, tips, and tricks. First, Monkeytype is written in ~~JavaScript~~ TypeScript, CSS, and HTML (in order of language usage within the project); thus, we assume you are comfortable in these languages or have basic knowledge of them. Our backend is in NodeJS and we use MongoDB to store our user data. Firebase is used for authentication. Redis is used to store ephemeral data (daily leaderboards, jobs via BullMQ, OAuth state parameters). Furthermore, we use Prettier to format our code.
## How to Contribute

View file

@ -218,11 +218,15 @@ function rerender() {
}
window.onload = async () => {
const schemaResponse = await fetch("/configuration/schema");
const dataResponse = await fetch("/configuration");
const [schemaResponse, dataResponse] = await Promise.all([
fetch("/configuration/schema"),
fetch("/configuration"),
]);
const schemaResponseJson = await schemaResponse.json();
const dataResponseJson = await dataResponse.json();
const [schemaResponseJson, dataResponseJson] = await Promise.all([
schemaResponse.json(),
dataResponse.json(),
]);
const { data: formSchema } = schemaResponseJson;
const { data: initialData } = dataResponseJson;