Commit Graph

3105 Commits

Author SHA1 Message Date
Karina Kwiatek d01a2ee252 Add tests for question create followers use case 2022-07-17 10:05:20 +02:00
Karina Kwiatek 5d542161a0 Add tests for question create use case 2022-07-17 10:05:20 +02:00
Karina Kwiatek 58b212f76d Add tests for question destroy use case 2022-07-17 10:05:20 +02:00
Karina Kwiatek 0e9be78588 Create use case for deleting questions 2022-07-17 10:05:20 +02:00
Karina Kwiatek 72906ca549 Fix lint errors 2022-07-17 10:05:20 +02:00
Karina Kwiatek 1216c249e8 Return different responses for use case errors 2022-07-17 10:05:20 +02:00
Karina Kwiatek 22a66f4d1a Fix lint errors 2022-07-17 10:05:20 +02:00
Karina Kwiatek d9ff4d5765 Refactor Ajax::QuestionController#create into separate UseCases
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-07-17 10:05:20 +02:00
Andreas Nedbal 2722f4fffb Fix comment notifications displaying escaped HTML 2022-07-17 09:40:47 +02:00
Andreas Nedbal ca2cf727e1 Require `user` param for `ListController#create` 2022-07-17 09:40:34 +02:00
Andreas Nedbal 47120e8d24 Appease the dog overlords 2022-07-17 09:40:34 +02:00
Andreas Nedbal 0555279cd2 Adjust response results in list controller tests 2022-07-17 09:40:34 +02:00
Andreas Nedbal a5b6ef07d3 Refactor `Ajax::ListController`
* remove inline authentication checks and use before_action instead
* remove begin/rescue catches as those are handled by the base controller and validations now
2022-07-17 09:40:34 +02:00
Andreas Nedbal a3f80380dd Adjust validations for `List` 2022-07-17 09:40:34 +02:00
Karina Kwiatek 69826eefe3 Bump version to 2022.0716.0 2022-07-16 21:30:12 +02:00
Karina Kwiatek aa04134785 Remove foreign key constraints from anon blocks & mute rules
We do it this way on other tables. Rails validates these on its own anyway.
2022-07-16 21:29:20 +02:00
Karina Kwiatek e1e45b04a3 Use double quotes instead of single quotes 2022-07-16 21:29:20 +02:00
Karina Kwiatek 3b98117dfa Update foreign keys instead of redefining them 2022-07-16 21:29:20 +02:00
Karina Kwiatek f396167704 Add test for trying to delete account while an export is pending 2022-07-16 21:29:20 +02:00
Karina Kwiatek c59a70844b Display if a context question has been deleted when viewing anon blocks 2022-07-16 21:29:20 +02:00
Karina Kwiatek 8005fc8ae6 Skip denotify if recipient doesn't exist 2022-07-16 21:29:20 +02:00
Karina Kwiatek d9f82c4985 Disallow deletion of accounts when a data export is pending 2022-07-16 21:29:20 +02:00
Karina Kwiatek 2229b8e782 Set on deletes for foreign keys 2022-07-16 21:29:20 +02:00
Karina Kwiatek 0294e6eb9d Appease the dog overlords 2022-07-16 15:58:30 +02:00
Karina Kwiatek 48bd2f5bc7 Add missing file extension to export URL 2022-07-16 15:58:30 +02:00
Karina Kwiatek 428db25c71 Add test for `Exporter#publish` 2022-07-16 15:58:30 +02:00
Karina Kwiatek bc07a9fbb0 Test exporting with profile picture 2022-07-16 15:58:30 +02:00
Karina Kwiatek c009dff560 Test that all header image sizes exist 2022-07-16 15:58:30 +02:00
Karina Kwiatek 5e633ab56e Fix invalid paths for original size images 2022-07-16 15:58:30 +02:00
Karina Kwiatek eaf61f1a6a Add test for `Export#finalize` with a profile header attached 2022-07-16 15:58:30 +02:00
Karina Kwiatek 45a87bf2b4 Remove unnecessary context blocks 2022-07-16 15:58:30 +02:00
Karina Kwiatek 37bc1e64de Add test for `Exporter#collect_comments` 2022-07-16 15:58:30 +02:00
Karina Kwiatek 75301900b3 Correct time precision in `Exporter#collect_questions` test 2022-07-16 15:58:30 +02:00
Karina Kwiatek 77ddf2feae Add test for `Exporter#collect_answers` 2022-07-16 15:58:30 +02:00
Karina Kwiatek 262705c3f0 Add test for `Exporter#collect_questions` 2022-07-16 15:58:30 +02:00
Karina Kwiatek f244252ade Mock Rails root 2022-07-16 15:58:30 +02:00
Karina Kwiatek 13d4927461 Test outputs of `Exporter#finalize` 2022-07-16 15:58:30 +02:00
Karina Kwiatek 76b40d012b Respect app config when generating export URL 2022-07-16 15:58:30 +02:00
Karina Kwiatek 6a1747eee7 Reload times to match precision 2022-07-16 15:58:30 +02:00
Karina Kwiatek 8e8b5ddb2a Add test for `Exporter#collect_smiles` 2022-07-16 15:58:30 +02:00
Karina Kwiatek f5c0d7b1c6 Appease the dog overlords 2022-07-16 15:58:30 +02:00
Karina Kwiatek d07b05ff24 Reformat `Exporter` spec 2022-07-16 15:58:30 +02:00
Karina Kwiatek 99062d4652 Make the data exporter less platform-dependent 2022-07-16 15:58:30 +02:00
Karina Kwiatek bd5ec792b7 Prevent text in links from being double-escaped 2022-07-16 15:57:32 +02:00
Karina Kwiatek 272ca72d3d Bump version to 2022.0711.0 2022-07-11 16:55:44 +02:00
dependabot[bot] 9cbb56edb8 Bump core-js from 3.23.3 to 3.23.4
Bumps [core-js](https://github.com/zloirock/core-js) from 3.23.3 to 3.23.4.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.23.3...v3.23.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 15:05:11 +02:00
dependabot[bot] ac58ca5d4c Bump @rails/ujs from 6.1.4 to 6.1.6
Bumps [@rails/ujs](https://github.com/rails/rails) from 6.1.4 to 6.1.6.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v6.1.4...v6.1.6)

---
updated-dependencies:
- dependency-name: "@rails/ujs"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 11:23:57 +02:00
Georg Gadinger b6c42264a6
Merge pull request #507 from Retrospring/depperterbot
Dependabot merge branch
2022-07-09 13:40:29 +02:00
dependabot[bot] 3e6eb346c4 Bump bootstrap_form from 5.0.0 to 5.1.0
Bumps [bootstrap_form](https://github.com/bootstrap-ruby/bootstrap_form) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/bootstrap-ruby/bootstrap_form/releases)
- [Changelog](https://github.com/bootstrap-ruby/bootstrap_form/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-09 12:57:31 +02:00
Georg Gadinger 4f1260bc04 remove fix_* tasks as we ensured we won't need them anymore a long time ago 2022-07-09 12:55:40 +02:00