Skip to content

Commit 6c01820

Browse files
authored
Merge branch 'master' into ingestion_filters
2 parents 474c2b5 + e1f4443 commit 6c01820

File tree

71 files changed

+1418
-155
lines changed

Some content is hidden

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

71 files changed

+1418
-155
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
45+
uses: github/codeql-action/init@v4
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v3
56+
uses: github/codeql-action/autobuild@v4
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v3
70+
uses: github/codeql-action/analyze@v4

.github/workflows/deployment-checks.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,32 @@ jobs:
1212
DB_PASSWORD: password
1313
SECRET_BASE_KEY: test_key
1414
RAILS_ENV: production
15+
services:
16+
postgres:
17+
image: postgres
18+
env:
19+
POSTGRES_DB: ${{ env.DB_NAME }}
20+
POSTGRES_USER: ${{ env.DB_USER }}
21+
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
22+
ports:
23+
- 5432:5432
24+
options: >-
25+
--health-cmd "pg_isready"
26+
--health-interval 10s
27+
--health-timeout 5s
28+
--health-retries 5
29+
redis:
30+
image: redis
31+
options: >-
32+
--health-cmd "redis-cli ping"
33+
--health-interval 10s
34+
--health-timeout 5s
35+
--health-retries 5
36+
ports:
37+
- 6379:6379
1538
steps:
16-
- uses: harmon758/postgresql-action@v1
17-
with:
18-
postgresql db: ${DB_NAME}
19-
postgresql user: ${DB_USER}
20-
postgresql password: ${DB_PASSWORD}
21-
name: Set up database
22-
2339
- uses: actions/checkout@v4
2440
name: Set up Ruby
25-
2641
- uses: ruby/setup-ruby@v1
2742
with:
2843
bundler-cache: true

.github/workflows/test.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,35 @@ jobs:
1212
DB_PASSWORD: password
1313
SECRET_BASE_KEY: test_key
1414
RAILS_ENV: test
15-
REDIS_TEST_URL: redis://localhost:6456/0
15+
REDIS_TEST_URL: redis://localhost:6379/0
16+
services:
17+
postgres:
18+
image: postgres
19+
env:
20+
POSTGRES_DB: ${{ env.DB_NAME }}
21+
POSTGRES_USER: ${{ env.DB_USER }}
22+
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
23+
ports:
24+
- 5432:5432
25+
options: >-
26+
--health-cmd "pg_isready"
27+
--health-interval 10s
28+
--health-timeout 5s
29+
--health-retries 5
30+
redis:
31+
image: redis
32+
options: >-
33+
--health-cmd "redis-cli ping"
34+
--health-interval 10s
35+
--health-timeout 5s
36+
--health-retries 5
37+
ports:
38+
- 6379:6379
1639
steps:
1740
- name: Install system dependencies
1841
run: |
1942
sudo apt-get update
2043
sudo apt-get install imagemagick
21-
- name: Set up database
22-
uses: harmon758/postgresql-action@v1
23-
with:
24-
postgresql db: ${DB_NAME}
25-
postgresql user: ${DB_USER}
26-
postgresql password: ${DB_PASSWORD}
27-
- name: Set up Redis
28-
uses: supercharge/redis-github-action@1.5.0
29-
with:
30-
redis-version: 6
31-
redis-port: 6456
3244
- name: Check out code
3345
uses: actions/checkout@v4
3446
- name: Install Ruby & gems

Gemfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ GEM
233233
http-accept (1.7.0)
234234
http-cookie (1.0.5)
235235
domain_name (~> 0.5)
236-
httparty (0.21.0)
236+
httparty (0.24.0)
237+
csv
237238
mini_mime (>= 1.0.0)
238239
multi_xml (>= 0.5.2)
239240
i18n (1.14.7)
@@ -376,7 +377,8 @@ GEM
376377
railties (>= 3.0)
377378
msgpack (1.7.2)
378379
multi_json (1.17.0)
379-
multi_xml (0.6.0)
380+
multi_xml (0.8.0)
381+
bigdecimal (>= 3.1, < 5)
380382
multipart-post (2.4.1)
381383
nested_form (0.3.2)
382384
net-http (0.6.0)
@@ -778,7 +780,7 @@ GEM
778780
unf_ext (0.0.8.2)
779781
unicode-display_width (2.4.2)
780782
unicode-types (1.10.0)
781-
uri (1.0.3)
783+
uri (1.0.4)
782784
useragent (0.16.11)
783785
validate_email (0.1.6)
784786
activemodel (>= 3.0)

app/assets/stylesheets/application.scss

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,32 @@
1818
@import "font-awesome-sprockets";
1919
@import "font-awesome";
2020
@import "mixins/mixins";
21-
@import "*";
21+
22+
// Local
23+
@import "about";
24+
@import "account";
25+
@import "activities";
26+
@import "autocomplete";
27+
@import "bootstrap-tweaks";
28+
@import "collaborations";
29+
@import "collection";
30+
@import "curators";
31+
@import "events";
32+
@import "external-resources";
33+
@import "footer";
34+
@import "forms";
35+
@import "headers";
36+
@import "helpers";
37+
@import "home";
38+
@import "icons";
39+
@import "learning-paths";
40+
@import "masonry";
41+
@import "nodes";
42+
@import "showcase";
43+
@import "toggle";
44+
@import "workflows";
45+
46+
// Vendor
2247
@import "cytoscape-panzoom";
2348
@import "jquery.simplecolorpicker";
2449
@import "eonasdan-bootstrap-datetimepicker";
@@ -1047,4 +1072,30 @@ td.day .calendar-text {
10471072
top: 0;
10481073
}
10491074
}
1050-
}
1075+
}
1076+
1077+
.theme-selector {
1078+
display: flex;
1079+
gap: 10px;
1080+
}
1081+
1082+
.theme-select-option {
1083+
flex-grow: 1;
1084+
label {
1085+
border: 5px solid;
1086+
padding: 10px 20px;
1087+
border-radius: 5px;
1088+
display: block;
1089+
1090+
hr {
1091+
border-width: 10px;
1092+
}
1093+
}
1094+
}
1095+
.btn-oidc-only {
1096+
font-size: 36px;
1097+
padding: 4px;
1098+
margin: 12px 10px;
1099+
display: flex;
1100+
justify-content: center;
1101+
}

app/assets/stylesheets/learning-paths.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939
}
4040

41-
.learning-path-item {
41+
.block-item {
4242
text-align: center;
4343
border-image-slice: 80;
4444
border-image-width: 80px;

app/controllers/collections_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def destroy
114114
@collection.create_activity :destroy, owner: current_user
115115
@collection.destroy
116116
respond_to do |format|
117-
format.html { redirect_to collections_url, notice: 'Collection was successfully destroyed.' }
117+
format.html { redirect_to collections_path, notice: 'Collection was successfully destroyed.' }
118118
format.json { head :no_content }
119119
end
120120
end

app/controllers/content_providers_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def destroy
8686
@content_provider.create_activity :destroy, owner: current_user
8787
@content_provider.destroy
8888
respond_to do |format|
89-
format.html { redirect_to content_providers_url, notice: 'Content Provider was successfully destroyed.' }
89+
format.html { redirect_to content_providers_path, notice: 'Content Provider was successfully destroyed.' }
9090
format.json { head :no_content }
9191
end
9292
end

app/controllers/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def destroy
187187
@event.create_activity :destroy, owner: current_user
188188
@event.destroy
189189
respond_to do |format|
190-
format.html { redirect_to events_url, notice: 'Event was successfully destroyed.' }
190+
format.html { redirect_to events_path, notice: 'Event was successfully destroyed.' }
191191
format.json { head :no_content }
192192
end
193193
end

app/controllers/learning_path_topics_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def destroy
6868
@learning_path_topic.create_activity :destroy, owner: current_user
6969
@learning_path_topic.destroy
7070
respond_to do |format|
71-
format.html { redirect_to learning_path_topics_url, notice: 'Topic was successfully destroyed.' }
71+
format.html { redirect_to learning_path_topics_path, notice: 'Topic was successfully destroyed.' }
7272
# format.json { head :no_content }
7373
end
7474
end

0 commit comments

Comments
 (0)