Joshua Wehner
2ff67bda24
Try an idempotentish reaction create API ( #18377 )
...
* Try an idempotentish reaction create API
* Add tests for create API endpoint
* Try -> ReactionHandler
* Fix existing tests first
* Tests for .toggle; fix broken handle_existing
* Use the Handler
* Tweak http status for reaction create
* Use the category reader
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2022-08-30 16:43:18 +02:00
Rajat Talesra
f482e60581
Removed unused brand color field from Profile ( #18370 )
...
* Minimal changes for removing brand-color-2
* Removed brand color 2 only for profile
* Updated test
2022-08-30 16:48:48 +05:30
Anna Buianova
6ef1968377
Made published_at immutable after an article has been published once ( #18384 )
...
* Don't change published_at for articles that have already been published (even if unpublished later)
* Removed unused code related to changing published_at
* Added specs for updating published_from_feed articles, fixed specs
* Removed old validation
* Added specs for article validation published_from_feed
* Added and reorganized specs for the Article model (setting published_at)
* Remove the commented code, added a spec
* Added specs for unpublishing
* Removed unused update_published_at from article attributes spec
* Fixed nullifying published_at seconds when republishing from rich editor
2022-08-30 11:32:06 +03:00
Ridhwana
d0cac66353
Further refactoring of the Reactions Service ( #18378 )
2022-08-29 18:00:47 +02:00
Rajat Talesra
8fa4f8f7b0
Image uploading progress in comments editor + post editor ( #18369 )
...
* Image upload loading all cases covered
* Image upload failure added to EditorBody
* Created imageUploadHelpers file
* Minor changes
* Nit fixes
* Error fix
* Added documentation
* Added/Updated tests
2022-08-29 16:01:40 +05:30
Josh Puetz
6bb523f480
Feed experiment for 08-23-2022 ( #18371 )
2022-08-26 10:30:01 -05:00
Ridhwana
7f25a25fe1
Update the error message when a user with role "comment_suspended" tries to comment ( #18367 )
2022-08-26 10:23:52 -05:00
Julianna Tetreault
806a5a774e
Backfill community_emoji data with a DUS 🌱 ( #16896 )
...
* Adds a DUS to backfill community_emoji for Forems that have one
* Adds a DUS spec to test backfilling community names
* update the script adn the tests to allow us to change the community name
* feat: add a stub for the community name
* feat: generate a later timestamp so that it doesnt cause confusion
* chcek if the emoji already appears in the community name
* feat: remove community emoji from displaying on the UI
* refactor:remove the else if completely
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2022-08-26 16:12:46 +02:00
Joshua Wehner
b6efce21fe
API for Reactions: Create endpoint ( #18355 )
...
* Extract reaction create from controller to service
* Success is having no errors
* Confirm http status successful
* V1 API endpoint for Create Reaction
* Actually reset cache count
* Tweak JSON response
* Reaction create -> toggle
* Try rswagger docs for reaction toggle
2022-08-24 17:02:34 +02:00
Ridhwana
69a08480a8
Refactor the Reactions Service ( #18365 )
...
* Extract reaction create from controller to service
* Success is having no errors
* Confirm http status successful
* rename var to be moreclear
* feat: existing reaction param
* refactor: reaction services
* fix: the mod actions need to be run irrespective of whether we have an existing reaction or not
* refactor: notifications and use the sink_articles
* refactor: rename destroy_previous_mod_reactions to be more accurately named
* chore: move methods further up
* refactor: returning destroy does not make sense
* chore: re-order some methods
* chore: remove comment
Co-authored-by: Joshua Wehner <joshua@forem.com>
2022-08-24 15:04:08 +02:00
depfu[bot]
4f9b4d0cfd
[ruby] Update all Bundler dependencies (2022-08-22) ( #18362 )
...
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-08-23 17:20:12 -05:00
Fernando Valverde
808149a424
Remove api_v1 feature flag ( #18213 )
2022-08-23 16:00:08 -04:00
Joshua Wehner
31296499da
Extract reaction create from controller to service ( #18350 )
...
* Extract reaction create from controller to service
* Success is having no errors
* Confirm http status successful
2022-08-23 10:09:47 +02:00
Anna Buianova
a4ffb7cac3
Allow published_at to be within 15 minutes, not 15 hours ( #18345 )
...
* Allow published_at to be within 15 minutes, not 15 hours
* Fixed creating past articles in the specs
* Fixed one more spec with a past article
* Use ActiveSupport's helper instead of computation
Co-authored-by: Fernando Valverde <fernando@fdo.cr>
Co-authored-by: Fernando Valverde <fernando@fdo.cr>
2022-08-22 12:48:40 +03:00
Fernando Valverde
2ad02cf31c
API v1 without api key restriction ( #18340 )
...
* Remove :api_v1 feature flag
* Reworking the auth configs throughout V1 + specs
* Fix remaining v1 specs
* Enhanced inline docs
* deprecation warning update
* Use headers variable for most v1 specs
* Cherry pick spec changes
* Fix specs
* group let! statements - rubocop
* Bring back ||= on api v1 authentication methods
* Bump swagger/v1/api_v1.json
2022-08-19 14:04:41 -06:00
Rajat Talesra
f5a51870f8
Sidebar scrolling bug fixed ( #18357 )
2022-08-20 01:16:03 +05:30
Josh Puetz
ec6c8ab136
Public reactions score feed lever ( #18358 )
2022-08-19 14:40:23 -05:00
Jeferson S. Brito
e0638d391c
Replace article's save button with bookmark ( #17893 )
2022-08-19 12:03:57 -04:00
Josh Puetz
6297acbd5b
Added relevancy lever based on comments scores of an article ( #18352 )
2022-08-19 10:06:13 -05:00
Mac Siri
e358fdf347
Revert "Nullify published_at when unpublishing an article ( #18298 )" ( #18353 )
2022-08-18 13:58:58 -04:00
depfu[bot]
34cd4e3675
[js] Update all Yarn dependencies (2022-08-17) ( #18343 )
...
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-08-18 12:28:43 -04:00
Joshua Wehner
3f6cc95f79
Try context-based sorting for username search ( #18311 )
...
* Try context-based sorting for username search
* Use the search
* Comment cleanup
* Working on specs for new context behavior
* Front-end provides context
* Try refactoring away from class-level methods
* Comments don't always have context
* Try refactor query to avoid joins and get under timeout
* If we stub the request, the tests might work
* Cleanup unused join fragments
2022-08-18 17:08:46 +02:00
depfu[bot]
89caf568de
[ruby] Update all Bundler dependencies (2022-08-17) ( #18342 )
...
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-08-17 17:35:53 -04:00
Fernando Valverde
60319212ce
Fix jest datetime tests with regex ( #18347 )
2022-08-17 11:12:09 -04:00
depfu[bot]
d2eae53443
[ruby] Update all Bundler dependencies (2022-08-11) ( #18330 )
...
* Update all Bundler dependencies (2022-08-11)
* Change Faraday adapter
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-08-16 10:56:23 -04:00
Rajat Talesra
8e6fa74fd0
Added more cases to handlePodcastMessages ( #18297 )
2022-08-16 01:22:07 +05:30
Anna Buianova
414e17aca6
Nullify published_at when unpublishing an article ( #18298 )
...
* Remove context_notifications when unpublishing all posts
* Nullify published_at when unpublishing an article
2022-08-15 20:59:20 +03:00
Dmitrii Faiazov
c642cadfc9
Сleared up the message when a comment is hidden ( #18199 )
...
* Fix message understanding when a comment is hidden and add i18n
* Fix naming
2022-08-15 10:53:20 -06:00
Anna Buianova
ad270fc842
Fix updating articles from scheduled to published (immediately) ( #18331 )
...
* Fixed publishing scheduled articles when removing published at date
* Fixed specs for editor v1
2022-08-15 08:53:31 -04:00
depfu[bot]
808318ae88
Update all Yarn dependencies (2022-08-11) ( #18329 )
...
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-08-12 12:01:39 -04:00
Suzanne Aitchison
fd690982cf
Hide like text if no likes on comment ( #18322 )
...
* set label to empty if no likes
* update spec
* fix styling issues when text is removed
* fix missed test text
2022-08-12 15:19:53 +01:00
Rajat Talesra
9e0310987e
Adds drag/drop image uploading function to comment editor ( #18290 )
...
* Image drag&drop upload in comment area imple
* Removed one line
2022-08-12 19:23:26 +05:30
Suzanne Aitchison
f17a4d4d3e
remove Suzanne from core team ( #18333 )
2022-08-12 12:26:04 +01:00
Ridhwana
ef3389b0f2
feat: change auto-correct to autocorrect in rubocop ( #18327 )
2022-08-12 12:23:10 +02:00
dependabot[bot]
a1e41daca2
Bump i18n-js from 3.9.2 to 4.0.2 ( #18254 )
...
* Bump i18n-js from 3.9.2 to 4.0.2
Bumps [i18n-js](https://github.com/fnando/i18n ) from 3.9.2 to 4.0.2.
- [Release notes](https://github.com/fnando/i18n/releases )
- [Changelog](https://github.com/fnando/i18n/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fnando/i18n/commits/v4.0.2 )
---
updated-dependencies:
- dependency-name: i18n-js
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* update import of i18n
* fix incorrect setting of locale
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2022-08-10 16:32:57 -04:00
Mac Siri
1beb2ae942
Remove dependabot.yml ( #18310 )
2022-08-10 16:32:14 -04:00
Joshua Wehner
445fd0f9e5
Try renaming moderator -> super_moderator ( #18261 )
...
* Try renaming moderator -> super_moderator
* Still finding 'moderator' words
* Fixes for failing specs
* Update test with new role name
* Update app/services/moderator/manage_activity_and_roles.rb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2022-08-10 16:43:30 +02:00
dependabot[bot]
d121916c84
Bump @babel/core from 7.18.9 to 7.18.10 ( #18306 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.18.9 to 7.18.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 08:59:26 +01:00
dependabot[bot]
0a50f5d2fd
Bump @storybook/addon-a11y from 6.5.9 to 6.5.10 ( #18299 )
...
Bumps [@storybook/addon-a11y](https://github.com/storybookjs/storybook/tree/HEAD/addons/a11y ) from 6.5.9 to 6.5.10.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.5.10/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.5.10/addons/a11y )
---
updated-dependencies:
- dependency-name: "@storybook/addon-a11y"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 08:59:13 +01:00
dependabot[bot]
7a100f4279
Bump chart.js from 3.8.2 to 3.9.1 ( #18300 )
...
Bumps [chart.js](https://github.com/chartjs/Chart.js ) from 3.8.2 to 3.9.1.
- [Release notes](https://github.com/chartjs/Chart.js/releases )
- [Commits](https://github.com/chartjs/Chart.js/compare/v3.8.2...v3.9.1 )
---
updated-dependencies:
- dependency-name: chart.js
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 08:58:58 +01:00
Anna Buianova
44a401643c
Remove context_notifications when unpublishing all posts ( #18287 )
...
* Remove context_notifications when unpublishing all posts
* Fixed typo
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
* Fixed typo
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2022-08-10 09:03:52 +03:00
Anna Buianova
cfc0406250
Save button text is always 'Save changes' for editor v1 ( #18304 )
2022-08-09 22:23:17 +03:00
Takuya N
47ac512f1d
Command update for gp cli in gitpod.yml ( #18208 )
...
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-08-09 11:36:07 -06:00
dependabot[bot]
f544d901da
Bump cypress from 10.3.1 to 10.4.0 ( #18301 )
...
Bumps [cypress](https://github.com/cypress-io/cypress ) from 10.3.1 to 10.4.0.
- [Release notes](https://github.com/cypress-io/cypress/releases )
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js )
- [Commits](https://github.com/cypress-io/cypress/compare/v10.3.1...v10.4.0 )
---
updated-dependencies:
- dependency-name: cypress
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 08:52:16 -06:00
dependabot[bot]
c2abdbeade
Bump @babel/preset-env from 7.18.9 to 7.18.10 ( #18292 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.18.9 to 7.18.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 11:43:54 +01:00
dependabot[bot]
43026ce083
Bump postcss from 8.4.14 to 8.4.16 ( #18294 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.14 to 8.4.16.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.14...8.4.16 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 09:55:04 +01:00
dependabot[bot]
c35ce8725d
Bump preact from 10.10.0 to 10.10.1 ( #18295 )
...
Bumps [preact](https://github.com/preactjs/preact ) from 10.10.0 to 10.10.1.
- [Release notes](https://github.com/preactjs/preact/releases )
- [Commits](https://github.com/preactjs/preact/compare/10.10.0...10.10.1 )
---
updated-dependencies:
- dependency-name: preact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 09:32:29 +01:00
dependabot[bot]
a63df79a86
Bump @babel/plugin-transform-react-jsx from 7.18.6 to 7.18.10 ( #18293 )
...
Bumps [@babel/plugin-transform-react-jsx](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-react-jsx ) from 7.18.6 to 7.18.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-plugin-transform-react-jsx )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-react-jsx"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 08:57:31 +01:00
dependabot[bot]
d942fa87eb
Bump oj from 3.13.19 to 3.13.20 ( #18296 )
...
Bumps [oj](https://github.com/ohler55/oj ) from 3.13.19 to 3.13.20.
- [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.13.19...v3.13.20 )
---
updated-dependencies:
- dependency-name: oj
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-08 16:38:25 -06:00
Anna Buianova
cab9b754b9
Don't show manage link in the action-space for a scheduled article ( #18278 )
...
* Don't show manage link in the action-space for a scheduled article
* Fixed Article#scheduled? for articles with empty published_at
2022-08-08 15:14:11 +03:00