Commit Graph

5295 Commits

Author SHA1 Message Date
Georg Gadinger ddc792d0df questions: sort bits alphabetically and combine them where possible 2023-02-15 21:33:20 +01:00
Georg Gadinger 841157c790 questions: remove 'and why is it' and add some new ones 2023-02-15 20:50:33 +01:00
Georg Gadinger 8a055341c8 add metrics for sidekiq 2023-02-14 05:31:54 +01:00
Georg Gadinger b937a10096 add some more metrics for answers and comments 2023-02-13 22:24:52 +01:00
Georg Gadinger 64adbb5707 allow /metrics to be reached from private subnets only
this commit is not approved by the IPv6 crowd.  patches welcome
2023-02-13 22:17:46 +01:00
Georg Gadinger c338a0c8cc add prometheus initialiser
this ensures it works great in multi-process setups (like with puma)
2023-02-13 22:17:46 +01:00
Georg Gadinger 9fadeea3fe rubodog 2023-02-13 22:17:46 +01:00
Georg Gadinger bc6806aa89 initial metrics 2023-02-13 22:17:46 +01:00
dependabot[bot] c44ea79cae
Merge pull request #1081 from Retrospring/dependabot/npm_and_yarn/esbuild-0.17.8 2023-02-13 10:07:58 +00:00
dependabot[bot] efdfe81d54
Merge pull request #1076 from Retrospring/dependabot/npm_and_yarn/stylelint-scss-4.4.0 2023-02-13 10:07:24 +00:00
dependabot[bot] ffc7af1fcf
Merge pull request #1075 from Retrospring/dependabot/npm_and_yarn/fortawesome/fontawesome-free-6.3.0 2023-02-13 10:07:02 +00:00
dependabot[bot] 7fe0e8cfb4
Merge pull request #1080 from Retrospring/dependabot/bundler/oj-3.14.2 2023-02-13 10:06:41 +00:00
dependabot[bot] 7e498a8c44
Merge pull request #1079 from Retrospring/dependabot/bundler/rubocop-1.45.1 2023-02-13 10:06:33 +00:00
dependabot[bot] 17de22b290
Merge pull request #1078 from Retrospring/dependabot/bundler/fog-aws-3.17.0 2023-02-13 10:05:51 +00:00
dependabot[bot] c280e94448
Merge pull request #1072 from Retrospring/dependabot/bundler/sentry-sidekiq-5.8.0 2023-02-13 10:05:34 +00:00
dependabot[bot] 530947baa3
Merge pull request #1074 from Retrospring/dependabot/bundler/puma-6.1.0 2023-02-13 10:04:04 +00:00
dependabot[bot] 06e05b4869
Bump esbuild from 0.17.5 to 0.17.8
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.17.5 to 0.17.8.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.17.5...v0.17.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 10:01:18 +00:00
dependabot[bot] e1b538ecc4
Bump oj from 3.14.1 to 3.14.2
Bumps [oj](https://github.com/ohler55/oj) from 3.14.1 to 3.14.2.
- [Release notes](https://github.com/ohler55/oj/releases)
- [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/ohler55/oj/compare/v3.14.1...v3.14.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 10:00:47 +00:00
dependabot[bot] cbf4c80994
Bump rubocop from 1.44.1 to 1.45.1
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.44.1 to 1.45.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.44.1...v1.45.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 10:00:10 +00:00
dependabot[bot] e0c4e896ba
Bump fog-aws from 3.16.0 to 3.17.0
Bumps [fog-aws](https://github.com/fog/fog-aws) from 3.16.0 to 3.17.0.
- [Release notes](https://github.com/fog/fog-aws/releases)
- [Changelog](https://github.com/fog/fog-aws/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fog/fog-aws/compare/v3.16.0...v3.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 09:59:31 +00:00
dependabot[bot] 8e56408c36
Bump stylelint-scss from 4.3.0 to 4.4.0
Bumps [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases)
- [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint-scss/stylelint-scss/compare/v4.3.0...v4.4.0)

---
updated-dependencies:
- dependency-name: stylelint-scss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 09:58:48 +00:00
dependabot[bot] 378173813d
Bump @fortawesome/fontawesome-free from 6.2.1 to 6.3.0
Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 6.2.1 to 6.3.0.
- [Release notes](https://github.com/FortAwesome/Font-Awesome/releases)
- [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md)
- [Commits](https://github.com/FortAwesome/Font-Awesome/compare/6.2.1...6.3.0)

---
updated-dependencies:
- dependency-name: "@fortawesome/fontawesome-free"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 09:58:27 +00:00
dependabot[bot] fc49dfc89a
Bump puma from 6.0.2 to 6.1.0
Bumps [puma](https://github.com/puma/puma) from 6.0.2 to 6.1.0.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](https://github.com/puma/puma/compare/v6.0.2...v6.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 09:58:03 +00:00
dependabot[bot] 39ecdc24fb
Bump sentry-sidekiq from 5.7.0 to 5.8.0
Bumps [sentry-sidekiq](https://github.com/getsentry/sentry-ruby) from 5.7.0 to 5.8.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.7.0...5.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 09:56:58 +00:00
Karina Kwiatek 3122d31f55
Merge pull request #1026 from Retrospring/feature/pinned-answers 2023-02-12 21:25:02 +01:00
Karina Kwiatek 793fec7da1 Update pinning tests to match new Turbo Stream behaviour 2023-02-12 21:06:16 +01:00
Karina Kwiatek 520f7eb9ef Show toasts on pin/unpin 2023-02-12 20:29:36 +01:00
Karina Kwiatek dcad9073a8 Fix typos in pinning tests 2023-02-12 20:19:50 +01:00
Karina Kwiatek 6724aef105 Order pinned answers by when they were pinned 2023-02-12 20:19:50 +01:00
Karina Kwiatek 854cf2662e Specify username param for pin/unpin path 2023-02-12 20:19:50 +01:00
Karina Kwiatek 736ca4d6b0 Use a policy for pinning/unpinning 2023-02-12 20:19:50 +01:00
Karina Kwiatek 2d6ff76461 Appease the dog overlords 2023-02-12 20:19:50 +01:00
Karina Kwiatek 2ee25d264f Simplify pinned check in answerbox
This is hidden by CSS in the prior case anyway
2023-02-12 20:19:50 +01:00
Karina Kwiatek fa68ab27d7 Limit to 10 pinned answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek de73532bef Show indicator for pinned answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek 6cbce2c157 Require authentication on unpin endpoint 2023-02-12 20:19:50 +01:00
Karina Kwiatek dd8f51160f Add test for unpinning when the answer is not pinned 2023-02-12 20:19:50 +01:00
Karina Kwiatek baea942975 Add check for pinning when the answer is already pinned 2023-02-12 20:19:50 +01:00
Karina Kwiatek 04303c667e Add tests for pin/unpin endpoints 2023-02-12 20:19:50 +01:00
Karina Kwiatek 664bf5eab2 Add test for unpin use case 2023-02-12 20:19:50 +01:00
Karina Kwiatek 438884e13a Add trailing commas (lint) 2023-02-12 20:19:50 +01:00
Karina Kwiatek 410d9b5d8e Implement unpinning answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek b196909b79 Create frontend endpoint for pinning answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek 5b1340b793 Appease the dog overlords 2023-02-12 20:19:50 +01:00
Karina Kwiatek 5f50a08f03 Adjust answer export test to include pinned_at field 2023-02-12 20:19:50 +01:00
Karina Kwiatek 3451ae1fb0 Display pinned answers on profiles 2023-02-12 20:19:50 +01:00
Karina Kwiatek ed4ec98455 Add use case for pinning answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek c2baa86c09 Add `pinned_at` to answers 2023-02-12 20:19:50 +01:00
Andreas Nedbal 5579489a92 Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2023-02-12 20:16:36 +01:00
Andreas Nedbal bc52eb8cb5 Add specs for Turbo Stream responses 2023-02-12 20:16:36 +01:00