Project

Profile

Help

Story #5522

closed

Story #5517: [EPIC] Automation Hub Release Blockers

As a user, I can filter ImportCollection reposnse messages by date to receive limit the set of messages returned

Added by bmbouter about 5 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 60
Quarter:

Description

Problem

Each time the user fetches logging output from GALAXY_API_ROOT/v3/imports/collections/<uuid:pk>/ it comes from this viewset

The issue is that the user wants to receive new log messages, but they get all logs every time.

Solution

Rename the CollectionImport Model by:

1. removing the "messages" attribute
2. creating three new attributes

  • message <--- long string, required.
  • level. <--- this should be a choice field w/ the standard Python logging levels enumerated
  • time. This one can be configured to auto-record at save using the django ORM syntax for that.

3. The "add_log_record" method should be removed
4. Port the logutils.CollectionImportHandler to create a CollectionImport for each call to emit()
5. Rename CollectionImport to CollectionImportMessage, and update migrations accordingly.

Also available in: Atom PDF