TACC / tup-ui

React client for TACC User Portal
2 stars 0 forks source link

feat: CMD-57 filter Q&A articles from Latest News #386

Closed wesleyboar closed 9 months ago

wesleyboar commented 10 months ago

Overview

(try to) Filter all "Q&A"-category articles from Latest News.

Related

Changes

Testing

Setup

Either create a Local TUP CMS with Production Content and learn to Locally Develop CMS and TUP CMS.

Or:

  1. Setup Blog/News on local empty TUP CMS.
  2. Create a category called "Q&A".
  3. Create an article (scroll to "Create News Feed Post") and set Category to "Q&A".
  4. Edit code to use that article's ID and that category's ID.

Steps

  1. Open http://localhost:8000/news/latest-news/?edit.
  2. Verify the article, or articles of set category, are not shown in the list.

UI

Unsuccessful.

wesleyboar commented 10 months ago

@jarosenb , as of 37857be, my local instance fails with error django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet..

stack trace ```log tup_cms | File "/code/apps/portal/apps.py", line 7, in tup_cms | from .monkey_patches import patch_blog_list tup_cms | File "/code/apps/portal/monkey_patches.py", line 1, in tup_cms | from djangocms_blog import views as cms_blog_views tup_cms | File "/usr/local/lib/python3.8/site-packages/djangocms_blog/views.py", line 13, in tup_cms | from parler.views import TranslatableSlugMixin, ViewUrlMixin tup_cms | File "/usr/local/lib/python3.8/site-packages/parler/views.py", line 24, in tup_cms | from parler.forms import TranslatableModelForm tup_cms | File "/usr/local/lib/python3.8/site-packages/parler/forms.py", line 9, in tup_cms | from parler.models import TranslationDoesNotExist tup_cms | File "/usr/local/lib/python3.8/site-packages/parler/models.py", line 856, in tup_cms | class TranslatableModel(TranslatableModelMixin, models.Model): tup_cms | File "/usr/local/lib/python3.8/site-packages/django/db/models/base.py", line 129, in __new__ tup_cms | app_config = apps.get_containing_app_config(module) tup_cms | File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 260, in get_containing_app_config tup_cms | self.check_apps_ready() tup_cms | File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 138, in check_apps_ready tup_cms | raise AppRegistryNotReady("Apps aren't loaded yet.") tup_cms | django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. ```

I will now instead try the new idea of installing two blogs instead of filtering from one.

wesleyboar commented 9 months ago

Closed. CMD used CMD-57 idea "F" instead. No code required.