Commit Graph

4750 Commits

Author SHA1 Message Date
6bfda8e552 Migrate default intervalstyle in database
By switching the `intervalstyle`, we assume to fix CODEOCEAN-FT. It is caused by by PgBouncer providing different database connections to Rails that might behave differently.
2022-12-06 23:43:23 +01:00
bc5baed05e Use exec_query for custom SQL execution
Also align how we use query Postgres from controllers.

The change is mainly due to regular (but not reproducible) issues with the `intervalstyle` defaulting to `postgres` (instead of `iso8601`) and thereby causing issues. We're just experimenting to see whether this change resolves the issue.
2022-12-06 22:41:00 +01:00
65c95a1f1c Expire all assets to enable SRI
Otherwise, many browsers show issues with caching
2022-12-06 21:23:02 +01:00
1918c152cc Bundle update 2022-12-06 20:27:56 +01:00
66921d92bb Fix assets:precompile to be idempotent again
Each execution regenerates the manifest, so that we also need to rewrite the hashes.
2022-12-06 20:21:58 +01:00
7debe371b3 Actually write changed manifest to disk 2022-12-06 19:43:15 +01:00
cfb5fac5b2 Prevent adding duplicate lines for source maps 2022-12-06 19:43:05 +01:00
da9a9b3e76 Ensure all text is visible during page load
We introduce the font-display property. See
https://developer.chrome.com/docs/lighthouse/performance/font-display/
2022-12-06 18:36:45 +01:00
75c6dfd20b Rename actioncable integration (deprecation warning) 2022-12-06 15:26:50 +01:00
de0c1d368c Add source map for sprockets 2022-12-06 15:26:50 +01:00
7706d8b2ed Merge pull request #1463 from openHPI/dependabot/bundler/terser-1.1.13 2022-12-06 04:07:10 +00:00
9fa783b0b4 Bump terser from 1.1.12 to 1.1.13
Bumps [terser](https://github.com/ahorek/terser-ruby) from 1.1.12 to 1.1.13.
- [Release notes](https://github.com/ahorek/terser-ruby/releases)
- [Changelog](https://github.com/ahorek/terser-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ahorek/terser-ruby/compare/1.1.12...1.1.13)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 03:57:46 +00:00
5de5aa8073 Merge pull request #1462 from openHPI/dependabot/npm_and_yarn/webpack-cli-5.0.1 2022-12-06 03:23:47 +00:00
f28b4dbd0f Bump webpack-cli from 5.0.0 to 5.0.1
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.0.0...webpack-cli@5.0.1)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 03:13:18 +00:00
96c3e5b26a Merge pull request #1461 from openHPI/dependabot/npm_and_yarn/mini-css-extract-plugin-2.7.2 2022-12-06 03:10:48 +00:00
cdc1b0e1a9 Merge pull request #1460 from openHPI/dependabot/npm_and_yarn/webpack-cli/serve-2.0.1 2022-12-06 03:09:06 +00:00
18a5e5b514 Bump mini-css-extract-plugin from 2.7.1 to 2.7.2
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 2.7.1 to 2.7.2.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.7.1...v2.7.2)

---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 03:00:54 +00:00
0f8350e953 Bump @webpack-cli/serve from 2.0.0 to 2.0.1
Bumps [@webpack-cli/serve](https://github.com/webpack/webpack-cli) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/@webpack-cli/serve@2.0.0...@webpack-cli/serve@2.0.1)

---
updated-dependencies:
- dependency-name: "@webpack-cli/serve"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 03:00:42 +00:00
73237412ed Compress JS and CSS files for production 2022-12-06 01:27:51 +01:00
9977e1614b Allow external redirect for render host and LTI
We only use the `launch_presentation_return_url` provided to the @provider, in order to prevent using an open redirect.
2022-12-05 22:38:13 +01:00
b7a3fd4586 Refactor exercise statistics to use convert times in Ruby 2022-12-05 21:59:34 +01:00
1cfae6101a Introduce additional time helper for managing intervals and durations 2022-12-05 18:22:18 +01:00
df666b4389 Fix missing whitespace for exercise feedback page 2022-12-05 18:21:44 +01:00
8147669173 Actually enable SRI for all websocket assets
Without this setting, no SRI hashes are added to the assets.
2022-12-05 18:21:22 +01:00
4ecaee9d6c Prevent reloading of SRI helpers in development
Otherwise, each code reload would re-add the SRI helpers and thus break the inclusion of asset tags.
2022-12-05 18:20:47 +01:00
53471096ac Bump d3 from 7.6.1 to 7.7.0
Bumps [d3](https://github.com/d3/d3) from 7.6.1 to 7.7.0.
- [Release notes](https://github.com/d3/d3/releases)
- [Changelog](https://github.com/d3/d3/blob/main/CHANGES.md)
- [Commits](https://github.com/d3/d3/compare/v7.6.1...v7.7.0)

---
updated-dependencies:
- dependency-name: d3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 13:07:06 +01:00
934fdf5744 Merge pull request #1458 from openHPI/dependabot/bundler/selenium-webdriver-4.7.1 2022-12-05 03:09:03 +00:00
afb1f2d6cd Bump selenium-webdriver from 4.7.0 to 4.7.1
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 03:00:42 +00:00
66a8701d5b Remove outdated structure.sql 2022-12-04 15:55:13 +01:00
48d9863090 Explicitly require prometheus/record during initialization 2022-12-04 15:27:55 +01:00
90b30e2bf7 Upgrade to Rails 7.0 and apply new framework defaults
* Remove `send_stream` method pulled in before upgrading Rails
* Remove spring, it is no longer included by default for new apps
* Remove deprecated options from environments
* Remove old asset paths and workarounds no longer needed
* Remove unnecessary `OAUTH_10_SUPPORT` const, LTI still uses OAuth 1.0
* Dump schema with new defaults (and specify precision for timestamps where needed)
2022-12-04 15:21:59 +01:00
ffe96d9223 Remove I18n.translation_present? monkey patch 2022-12-04 15:03:28 +01:00
fe24e7d890 Fix rubocop offenses 2022-12-04 00:51:30 +01:00
db6d9d64ef Explicitly require sprockets-rails for Rails 7+ 2022-12-04 00:40:34 +01:00
215a9e4662 Bump selenium-webdriver from 4.6.1 to 4.7.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.6.1 to 4.7.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.7.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 20:32:14 +01:00
edadbe9b61 Bump sentry-ruby from 5.6.0 to 5.7.0
Bumps [sentry-ruby](https://github.com/getsentry/sentry-ruby) from 5.6.0 to 5.7.0.
- [Release notes](https://github.com/getsentry/sentry-ruby/releases)
- [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-ruby/compare/5.6.0...5.7.0)

---
updated-dependencies:
- dependency-name: sentry-ruby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 20:31:32 +01:00
ca7a2b2ba7 Bump rails-erb-loader from 43472ff to ce2d166
Bumps [rails-erb-loader](https://github.com/usabilityhub/rails-erb-loader) from `43472ff` to `ce2d166`.
- [Release notes](https://github.com/usabilityhub/rails-erb-loader/releases)
- [Commits](43472ff4cb...ce2d166632)

---
updated-dependencies:
- dependency-name: rails-erb-loader
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-02 20:31:03 +01:00
596dc91d31 Merge pull request #1452 from openHPI/dependabot/npm_and_yarn/mini-css-extract-plugin-2.7.1 2022-11-30 03:10:19 +00:00
cee430694b Bump mini-css-extract-plugin from 2.7.0 to 2.7.1
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.7.0...v2.7.1)

---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 03:01:25 +00:00
826ec94e36 Bundle update 2022-11-28 14:57:17 +01:00
ddc6f3dddd Clarify version requirement for ims-lti 2022-11-28 14:57:13 +01:00
e79e7e423b Add ruby version 2022-11-25 13:09:14 +01:00
574e99eddd Fix rubocop offenses - Requires Ruby 3.1+ 2022-11-25 11:10:06 +01:00
bdf474e684 Bump Rubocop TargetRubyVersion to 3.1 2022-11-25 11:10:06 +01:00
673c4b57fe Update Postgres to v15 in CI 2022-11-25 11:10:06 +01:00
bdba2db7a6 Bundle update 2022-11-25 11:10:06 +01:00
abdb027e53 Bump i18n-js from 4.1.1 to 4.2.0
Bumps [i18n-js](https://github.com/fnando/i18n) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/fnando/i18n/releases)
- [Changelog](https://github.com/fnando/i18n/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fnando/i18n/compare/v4.1.1...v4.2.0)

---
updated-dependencies:
- dependency-name: i18n-js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-25 08:18:23 +01:00
bf5781f90d exclude model from rails admin, add possible performance solution (remove all associations from list) 2022-11-24 22:59:12 +01:00
aecd7b8231 Bump rails_admin from 2.2.1 to 3.1.0
Bumps [rails_admin](https://github.com/sferik/rails_admin) from 2.2.1 to 3.1.0.
- [Release notes](https://github.com/sferik/rails_admin/releases)
- [Changelog](https://github.com/railsadminteam/rails_admin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sferik/rails_admin/compare/v2.2.1...v3.1.0)

---
updated-dependencies:
- dependency-name: rails_admin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-24 22:59:12 +01:00
dfbf06274c Specify class for html_escape 2022-11-24 17:16:18 +01:00