Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide publication information when getting metadata for search results #395

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

dragon-dxw
Copy link
Collaborator

@dragon-dxw dragon-dxw commented Sep 18, 2023

image image

This is potentially breaking behaviour since there is a new published value editor_status can emit or new for Document.status.
https://linear.app/tna/issue/FCL-82/status-in-search-results-doesnt-match-the-actual-status-of-the

But it turns out that the editor just displays this value, never really parsing it; seems to be true for the Document too.

Editor could do with a colour tweak for "new"

@dragon-dxw dragon-dxw changed the title Provide publication information when getting metadata for search results ⬆️ Provide publication information when getting metadata for search results Sep 18, 2023
@dragon-dxw dragon-dxw changed the title ⬆️ Provide publication information when getting metadata for search results Provide publication information when getting metadata for search results Sep 18, 2023
assert on_hold_document.status == DOCUMENT_STATUS_HOLD

published_document = Document("test/1234", mock_api_client)
published_document.is_held = False
published_document.is_published = True
published_document.assigned_to = "duck"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quack

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦆

Copy link
Contributor

@anthonyhashemi anthonyhashemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document.status and SearchResult.editor_status are now both in line, looks good 😎

@dragon-dxw dragon-dxw force-pushed the FCL-82-consistent-status branch from 3e90a83 to 08fec9e Compare September 18, 2023 16:08
@dragon-dxw dragon-dxw merged commit 3a6b6c0 into main Sep 18, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants