Skip to content

Commit b3c2311

Browse files
committed
Merge branch 'unstable' into info-modal-fix
2 parents 9b26ffd + ba7b466 commit b3c2311

File tree

936 files changed

+49169
-30605
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

936 files changed

+49169
-30605
lines changed

.docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory is a space for mounting directories to docker containers, allowin
44
### postgres
55
The `postgres` directory is mounted to `/docker-entrypoint-initdb.d`. Any `.sh` or `.sql` files will be executed when the container is first started with a new data volume. You may read more regarding this functionality on the [Docker Hub page](https://hub.docker.com/_/postgres), under _Initialization scripts_.
66

7-
When running docker services through the Makefile commands, it specifies a docker-compose project name that depends on the name of the current git branch. This causes the volumes to change when the branch changes, which is helpful when switching between many branches that might have incompatible database schema changes. The downside is that whenever you start a new branch, you'll have to re-initialize the database again, like with `yarn run devsetup`. Creating a SQL dump from an existing, initialized database and placing it in this directory will allow you to skip this step.
7+
When running docker services through the Makefile commands, it specifies a docker-compose project name that depends on the name of the current git branch. This causes the volumes to change when the branch changes, which is helpful when switching between many branches that might have incompatible database schema changes. The downside is that whenever you start a new branch, you'll have to re-initialize the database again, like with `pnpm run devsetup`. Creating a SQL dump from an existing, initialized database and placing it in this directory will allow you to skip this step.
88

99
To create a SQL dump of your preferred database data useful for local testing, run `make .docker/postgres/init.sql` while the docker postgres container is running.
1010

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ __pycache__
66
*.pyc
77
*.swp
88
k8s/templates/
9-
cloudbuild-*.yaml
9+
cloudbuild-*.yaml

.eslintrc.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const esLintConfig = require('kolibri-tools/.eslintrc');
1+
const esLintConfig = require('kolibri-format/.eslintrc');
22

33
esLintConfig.globals = {
44
$: false,
@@ -8,7 +8,13 @@ esLintConfig.globals = {
88
MathJax: false,
99
jest: false,
1010
};
11-
esLintConfig.settings['import/resolver']['webpack'] = { config: 'webpack.config.js'};
11+
esLintConfig.settings['import/resolver']['webpack'] = { config: require.resolve('./webpack.config.js')};
12+
13+
// Remove once Vuetify is gone-- Vuetify uses too many unacceptable class names
14+
esLintConfig.rules['kolibri/vue-component-class-name-casing'] = 0;
15+
16+
// Dumb
17+
esLintConfig.rules['vue/no-v-text-v-html-on-component'] = 0;
1218

1319
// Vuetify's helper attributes use hyphens and they would
1420
// not be recognized if auto-formatted to camel case

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Run this command to always ignore formatting commits in `git blame`
2+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3+
4+
# Linting updates and fixes
5+
a52e08e5c2031cecb97a03fbed49997756ebe01b
6+
8ccaaa60efd1c07b220aefce5a307e4791345111

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/enhancement_template.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/issue_template.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/pull_request_template.md

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Community Contribution Label
2+
3+
on:
4+
issues:
5+
types: [assigned, unassigned]
6+
7+
jobs:
8+
call-label-action:
9+
uses: learningequality/.github/.github/workflows/community-contribution-label.yml@main
10+
secrets:
11+
LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }}
12+
LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }}

.github/workflows/containerbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
5858

5959
- name: Build and push Docker image
60-
uses: docker/build-push-action@v5
60+
uses: docker/build-push-action@v6
6161
with:
6262
context: ./docker
6363
file: ./docker/Dockerfile.postgres.dev
@@ -97,7 +97,7 @@ jobs:
9797
uses: docker/setup-buildx-action@v3
9898

9999
- name: Build Docker image
100-
uses: docker/build-push-action@v5
100+
uses: docker/build-push-action@v6
101101
with:
102102
context: ./
103103
file: ./k8s/images/nginx/Dockerfile

.github/workflows/deploytest.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,27 @@ jobs:
2020
uses: fkirc/skip-duplicate-actions@master
2121
with:
2222
github_token: ${{ github.token }}
23-
paths: '["**.py", "requirements.txt", ".github/workflows/deploytest.yml", "**.vue", "**.js", "yarn.lock", "package.json"]'
23+
paths: '["**.py", "requirements.txt", ".github/workflows/deploytest.yml", "**.vue", "**.js", "pnpm-lock.yaml", "package.json"]'
2424
build_assets:
2525
name: Build frontend assets
2626
needs: pre_job
2727
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v4
31+
- name: Use pnpm
32+
uses: pnpm/action-setup@v4
3133
- name: Use Node.js
3234
uses: actions/setup-node@v4
3335
with:
34-
node-version: '16.x'
35-
- name: Cache Node.js modules
36-
uses: actions/cache@v4
37-
with:
38-
path: '**/node_modules'
39-
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
40-
restore-keys: |
41-
${{ runner.OS }}-node-
36+
node-version: '18.x'
37+
cache: 'pnpm'
4238
- name: Install dependencies
4339
run: |
44-
yarn --frozen-lockfile
45-
npm rebuild node-sass
40+
pnpm install --frozen-lockfile
41+
pnpm rebuild node-sass
4642
- name: Build frontend
47-
run: yarn run build
43+
run: pnpm run build
4844
make_messages:
4945
name: Build all message files
5046
needs: pre_job
@@ -68,21 +64,17 @@ jobs:
6864
python -m pip install --upgrade pip
6965
pip install pip-tools
7066
pip-sync requirements.txt
67+
- name: Use pnpm
68+
uses: pnpm/action-setup@v4
7169
- name: Use Node.js
7270
uses: actions/setup-node@v4
7371
with:
74-
node-version: '16.x'
75-
- name: Cache Node.js modules
76-
uses: actions/cache@v4
77-
with:
78-
path: '**/node_modules'
79-
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
80-
restore-keys: |
81-
${{ runner.OS }}-node-
72+
node-version: '18.x'
73+
cache: 'pnpm'
8274
- name: Install node dependencies
8375
run: |
84-
yarn --frozen-lockfile
85-
npm rebuild node-sass
76+
pnpm install --frozen-lockfile
77+
pnpm rebuild node-sass
8678
- name: Install gettext
8779
run: |
8880
sudo apt-get update -y

.github/workflows/frontendlint.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)