Skip to content

Rewrite blogpost overview (management) in Vue

Chris Oelmueller requested to merge blog-overvue into master

What does this MR do?

  • Rewrite blogpost overview (management) in Vue
  • Refactor old view code components in the vicinity
  • Remove several of those components afterwards

How confident are you it won't break things if deployed?

it's probably okay with thorough MR testing. but this area is rarely used and not covered well by our testing routines...

Links to related issues

How to test

  1. Checkout branch locally
  2. Login as orga
  3. Open the blogpost management page from topbar
  4. Notice that you can now edit, publish delete blogposts of others (only if orga)
  5. Write a new blogpost and submit it, include a teaser image and don't
  6. Locate your new blogpost in the list, check that all data looks correct (incl. the new link to author profile), (de)publish it by clicking the icon, edit it + submit, delete it
  7. Check that people can view a published post (there's a new direct link to open the blog) and that they cannot view a depublished one
  8. Bonus: Figure out how the region filtering works and test that it still works ;-)

It's intentional that the author name is not built, because the query to fetch all content is not paginated, and fetching all sorts of user data might be unnecessary server load since it will rarely be needed/unclear who wrote something. The link is a good compromise I think.

Screenshots

image

Checklist

  • somebody should write API tests if they feel this module is important enough
  • there are unrelated changes, but they were definitely warranted
  • asked someone for a code review
  • set a "for:" label to indicate who will be affected by this change
  • use "state:" labels to track this MR's state until it was beta tested
  • added an entry to CHANGELOG.md
  • add a short text that can be used in the release notes
  • I am unable to take care of the beta-testing task

Release notes text

see release-notes/2021-03/1791.md

Edited by Chris Oelmueller

Merge request reports