docbrown/app/views
Suzanne Aitchison 5e8fae9ddc
Member index: Filter by status (#17980)
* show the statuses in the modal

* filter the results

* add some todo around good standing

* Enable Rails framework 7.0's isolation_level, partial_inserts, & raise_on_open_redirects (#17970)

* Member index: Show applied org filters (#17977)

* show applied org filters

* correct casing

* API V1 transition (#17835)

* API Articles v0-v1 restructure

* Remove unused helper

* Bulk move API controllers into concerns + add V1 controllers

* Extract API routes + some fixes

* Fix v1 api_controller authenticate! + add more article_controller specs

* Completed spec/requests/api/v1/articles_spec.rb

* specs up to listings

* All v1 specs except for 9 skips

* mime_types cleanup + authenticate! relocation

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>

* Fix email confirmation logic when registering via Omniauth (#17878)

* Move .skip_confirmation! call to .find_or_create_user! method

* Add regression tests to avoid email confirmation delivery

* Keep the original place where we had user.skip_confirmation! too

* Update logic to require email confirmation from omniauth

* test confirmation is required with SMTP

* Keep :notice instead of :global_notice

* Forem Account bypass email confirmation reorg

* inline comment reorder + clarification

* Apply suggestions from code review

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Member Index View Actions: "Adjust Credit Balance" (#17974)

* Adds the Adjust credit balance modal to index view

* Adds e2e tests for adjusting credit balances via modal

* Adds the ability to update credits to #user_status

* Adjusts the e2e to address failures

* Introducing a quick and dirty fix for abtests/admin (#17982)

This is a "quick and dirty" hack.  Do I like it?  No.  Do I want to delve
into further debugging/refactoring of [a 72 line method][1]?  Not at the
moment.  There are a few pathways forward, but for now, this is the
pathway to hopefully give us insight into the

**Why will this likely address the issue?**

Prior to this commit, for an experiment we would render each of the
goals (anywhere from 8 to 11); each of which would require 2 expensive
queries; which means about 16 expensive queries.

After this commit, the experiment page has none of those expensive
queries; instead each goal now runs the 2 expensive queries.

The hope is that this will help us show the results (albeit on multiple
pages) while coming in under the response time out handlers we have in
place.

**Why no tests?**

Ugh; I know right?!?  I'm beginning to ask that myself.  But for now,
because this is only visible to tech_admins, the consequences of
breaking are limited.  In otherwords, this is not a customer facing
feature, so it can be a bit less robust in it's testing.  At least
that's the rationalization I'm establishing.

Further, local tests would not reveal the production environment
complications of large data sets.  The aforementioned expensive queries
are blisteringly fast on my local machine...in part because I don't much
field_test experiment data.

Closes forem/forem#17981

Related to:

- forem/forem#17895
- forem/forem#17869

[1]:ab2d7d29d0/lib/field_test/experiment.rb (L98-L160)

* Adding test for redundant roles

* Adding filter for roles

* forget about good standing status

* remove good standing specs

* Update app/helpers/admin/users_helper.rb

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* appease rubocop

* simplify

* add e2e tests

* add the applied filter pills for status

* make sure clear all button shows

* add a comment to explain good standing

* tweak

* set the registered dates of test users

Co-authored-by: Mac Siri <mac@forem.com>
Co-authored-by: Fernando Valverde <fernando@fdo.cr>
Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
Co-authored-by: Jeremy Friesen <jeremy.n.friesen@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-14 17:32:31 +01:00
..
admin Member index: Filter by status (#17980) 2022-07-14 17:32:31 +01:00
api Unpublish post service class + V1 API endpoint (#18031) 2022-07-08 09:08:55 -06:00
articles Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
badges views/badges etc i18n (#15021) 2021-10-20 09:36:30 -06:00
collections Hide 'Save' button on posts that belong to the current user (#17293) 2022-04-28 12:33:01 -04:00
comments Add markdown toolbar to comments (#18062) 2022-07-12 09:02:53 +01:00
credits Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
dashboards Scheduling articles (#17939) 2022-07-07 17:32:49 +03:00
deep_links Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
devise Remove name from invitation flow (#17438) 2022-05-03 09:33:12 +01:00
email_subscriptions I18nize views misc & non-HTML templates (#15136) 2021-12-08 11:28:16 -05:00
feedback_messages views/feedback_messages i18n (#15038) 2021-10-27 12:34:56 +01:00
field_test/experiments Introducing a quick and dirty fix for abtests/admin (#17982) 2022-06-24 09:26:46 -04:00
fields views/tags etc i18n (#15039) 2021-10-20 08:13:51 -06: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 Admin member index - minor UI/a11y fixes (#17246) 2022-04-14 07:59:31 +01:00
layouts Update Bootstrap from 4.4.1 to 4.5.3 (#17391) 2022-04-22 07:37:12 -04:00
liquid_embeds Move work from template to controller (#16092) 2022-01-18 11:21:25 -05:00
liquids Fix Stackoverflow liquid embedded styles (#17541) 2022-05-26 11:59:32 +01:00
listings Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
mailers Conditionally removing listing reference (#17211) 2022-04-11 13:02:17 -04:00
moderations Supplement some new i18n keys (#18034) 2022-07-07 09:38:29 -06:00
notifications Conditionally removing listing reference (#17211) 2022-04-11 13:02:17 -04:00
open_search Add a contact email address to the /admin/customization/config (#16497) 2022-02-15 17:37:08 +02:00
organizations Truncation long text on profile screen (#18038) 2022-07-05 12:59:15 -06:00
pages Use correct trademarks in supported embeds (#17195) 2022-04-11 07:32:45 -06:00
podcast_episodes Always show the browse section of podcasts regardless of featured (#16329) 2022-03-22 12:56:54 -04:00
podcasts views/podcasts, views/podcast_episodes i18n (#15020) 2021-10-25 14:32:51 +01:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
profile_preview_cards Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
reading_list_items views/reading_list_items i18n (#15041) 2021-10-18 11:32:57 -07:00
response_templates Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
service_worker Revert "Revert "Removed service worker (#12974)" (#13014)" (#13015) 2021-03-17 10:57:56 -04:00
shared Fix duplicate IDs on homepage (#17092) 2022-04-14 10:48:55 +01:00
sidebars fix grid col overflow in right sidebar in safari (#16771) 2022-03-03 07:51:16 -06:00
sitemaps Fix legacy sitemap logic (#14926) 2021-10-07 08:59:16 -04:00
social_previews Render social previews for tags with one of the two custom colors set (#16557) 2022-02-15 09:56:57 -06:00
stories feat: tagged articles page title can render tag pretty name (#17944) 2022-06-17 10:30:50 +01:00
tags Make Follow Buttons in User, Org and Tag Embeds "secondary" (#17602) 2022-05-10 16:37:39 -04:00
users Allow trusted user to access response templates (#17978) 2022-07-12 11:37:59 +02:00
videos Update jQuery from 3.3.1 to 3.6.0 on /videos/new (#17205) 2022-04-19 11:00:30 -04:00