docbrown/app/views
Ridhwana 530e927060
Add ability to re-run a data script from the the data update script page (#12424)
* feat: add an error column to the data update script

* feat: save the error to the error field

* feat: save the error when the script fails

* feat: show the script error on the data update script page

* chore: pass the error to mark_as_failed instead of having its own function

* refactor: use presence

* test: ensure that we test an error case of a data update script

* chore: rename errorneous to failing

* test: update some specs, working on the others

* chore: update tests now that there are two files

* chore: change error from a string to a text to allow for more char

* feat: order the data update scripts by the latest script that ran

* feat: when the script has succeeded reset error to nil

* feat: create a model function that will allow the script to be force run

* chore: oops remove the functions form the worker to the model so it can be re-used

* feat: create an endpoint that will call the model method force run when we hit the api by clicking the button

* feat: ensure that the we add an ajax call that calls the controller endpoint

* chore: remove newline

* refactor: change to a more Restful route

* refactor: use Stimulus

* fix: move the code from the model back into the worker so that we can reuse it in the controller

* feat:call the worker in the force_run action and create a show route

* feat: very first draft of using a polling mechanism on the show method after we kickoff the sidekiq job (still need to error handle)

* chore: some syntax changes and unused variables

* fix: call the method correctly with the paramters

* feat: do some error handling

* feat: error handing on the frontend

* chore: use e instead of err

* refactor: just pass the id instead of the whole script

* chore: remove the button

* fix: allow the id to be passed

* feat: handle errors better

* feat: limit the filename column width

* refactor: use a common function to set the banner error

* test: add a test fro rerun button

* test: v1 of the data update script request

* test: write some specs for the js controller

* Update app/controllers/admin/data_update_scripts_controller.rb

Co-authored-by: Michael Kohl <me@citizen428.net>

* tests: update the data worker spec

* chore: clean up the js controller and its tests

* chore: remove whitespaces

* chore: swap the functions based on the controller

* chore: updates to the UI

* chore: remove the standard error catch

* chore: update the alert and error messages

* chore: remove test for error handling for sidekiq run

Co-authored-by: Michael Kohl <me@citizen428.net>
2021-02-02 17:24:39 +02:00
..
admin Add ability to re-run a data script from the the data update script page (#12424) 2021-02-02 17:24:39 +02:00
api/v0 API: Endpoint to get an organization's articles (#12237) 2021-01-13 13:09:58 +01:00
articles feature added : add-discussion-length-in-brackets #12324 (#12518) 2021-02-02 15:14:01 +00:00
badges [deploy] Replace #cloudinary with #optimized_image_url (#9876) 2020-08-21 14:46:00 -04:00
chat_channel_memberships [deploy] 🚀 Feature: Chat channel request manager (#9305) 2020-07-22 09:12:09 -04:00
chat_channels 🚀 Ability to allow tag moderators to create chat channels (#9741) 2020-12-08 13:10:36 +07:00
collections Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
comments Improve cumulative layout shift on comment reactions + optimizations (#12309) 2021-01-18 19:29:44 -05:00
credits Set Stripe dynamically instead of at boot (#9862) 2020-08-19 21:24:19 -04:00
dashboards Patch: Fix UI bugs in follow adjustment form (#12137) 2021-01-20 17:23:18 -05:00
devise fix ui issue to display bug (#12365) 2021-01-22 15:47:19 -05:00
doorkeeper [deploy] Replace #cloudinary with #optimized_image_url (#9876) 2020-08-21 14:46:00 -04:00
email_subscriptions Removal of morrrre hardcoded dev.to links (#7390) 2020-04-21 11:50:18 +02:00
events Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
feedback_messages Split ReCaptcha service and use verbs instead of pronouns (#11706) 2020-12-02 16:50:42 -06:00
fields Ignore unused users columns (#6954) [deploy] 2020-04-01 10:11:40 +02:00
followings Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
github_repos Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
homepage Stories views reorganization (#1317) 2018-12-13 14:54:02 -05:00
kaminari/internal Upgrade erb_lint to support latest Rubocop and fix violations (#9663) 2020-08-07 15:36:48 +02:00
layouts Header navigation dropdown accessibility (#11509) 2021-01-27 09:39:17 +00:00
liquid_embeds Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
liquids Fix image assets in tweets and remove like/retweet counts (#12327) 2021-01-19 10:30:38 -05:00
listings Use anchor tag instead of button for edit/delete links (#12098) 2021-01-04 11:03:15 -05:00
mailers Replace misc :user_settings_path with :customization (#12300) 2021-01-15 15:17:23 -06:00
moderations Update dev.to/mods for non-logged in users (#12301) 2021-01-20 13:53:50 -05:00
notifications Cache only the static badge achievement data for notifications (#12368) 2021-01-21 17:03:42 -05:00
onboardings Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
open_search Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
organizations Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
pages Update /contact page with links to filing bug reports + forem.dev (#12475) 2021-01-29 06:40:24 -05:00
partnerships Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
podcast_episodes Fix outstanding /pod main image problem (#12280) 2021-01-14 13:18:47 -05:00
podcasts Fix small ERB linting issues (#11438) 2020-11-16 16:15:37 +01:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
reading_list_items Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
response_templates Refactor jbuilder (#7411) 2020-04-24 12:49:12 +02:00
service_worker Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
shared Only show user count for large userbases (#12238) 2021-01-12 11:58:03 -06:00
shell Bug Fix:ForemInstance.deployed_at is a String, not a datetime (#12498) 2021-01-31 14:57:48 -06:00
sidebars First working version to integrate native bridge image upload (#11838) 2020-12-23 10:02:39 -06:00
sitemaps Replaced ApplicationConfig with app_url in views (#7708) 2020-05-08 13:19:29 +03:00
social_previews Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
stories Prep work to sync mobile search in #10424 (#11525) 2020-11-30 06:13:06 -05:00
tags Update Tag Link to Route to Proper Admin Page (#12391) [deploy] 2021-01-25 08:25:39 -07:00
users Cleaning Test Runs for End to End (E2E) Tests (#12143) 2021-01-29 13:34:01 +01:00
video_chats Fix remaining erblint errors (#8405) 2020-06-11 20:03:19 +02:00
videos Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00