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

Feature hooks #1492

Merged
merged 33 commits into from
Apr 17, 2020
Merged

Feature hooks #1492

merged 33 commits into from
Apr 17, 2020

Conversation

ajrbyers
Copy link
Member

@ajrbyers ajrbyers commented Apr 3, 2020

  • PEP8-ifys a few views that were pretty bad
  • Adds LANGUAGE_CODE to global settings as this was breaking the Clean theme
  • Fixed core.models.BASE_ELEMENTS and core.models.WorkflowElement handshake_url to correct: this should be the "list" page for the element (migrations added to fix the DB)
  • Fixes core.models.has_missing_image_files for files that aren't XML.
  • Added two methods to core.models.WorkflowElement that let us see what stages are part of a element and which articles are in those stages
  • the hook tag in core.templatetags.hooks no takes *args and **kwargs
  • added a new method submission.models.Article.current_stage
  • Moved the editor block of the dashboard to its own block, updated it to render based on what elements are in request.journal.workflow
  • Updated various checks on the dashboard to ensure they only display when their Workflow element is present in request.journal.workflow
  • Updated left hand nav to render workflow based on request.journal.workflow`
  • Fixed an admin link to proofing
  • utils.install.update_settings now allows for a path to load other settings with a default utils/install/journal_defaults.json
  • utils.management.commands.install_plugins now accepts an option argument plugin_name so you can fire the install process for a single plugin eg. ./manage.py install_plugins typesetting

Copy link
Member

@mauromsl mauromsl left a comment

Choose a reason for hiding this comment

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

Some comments inline

I think we are missing the dashboard hooks for the typesetter, production_manager, proofreader no? as well as the swimlanes on the kanban view.

@ajrbyers
Copy link
Member Author

ajrbyers commented Apr 7, 2020

Some comments inline

I think we are missing the dashboard hooks for the typesetter, production_manager, proofreader no? as well as the swimlanes on the kanban view.

Yes dashboard cards for typesetter and proofreader yes. Swimlanes are already done (handled by card.html. Will push an update soon.

@ajrbyers ajrbyers requested a review from mauromsl April 15, 2020 15:58
@ajrbyers
Copy link
Member Author

Should be ready for re-review now.

Copy link
Member

@mauromsl mauromsl left a comment

Choose a reason for hiding this comment

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

2 more to go!

@@ -169,11 +169,15 @@ def articles_in_workflow_stages(request):
workflow_list[element.element_name] = element_dict
except (KeyError, AttributeError) as e:
if settings.DEBUG:
Copy link
Member

Choose a reason for hiding this comment

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

we should log this in production as well, no?

Comment on lines 320 to 321
# Check if the value is in dynamic choices and remove the
# error message if it is
Copy link
Member

Choose a reason for hiding this comment

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

This is slightly inaccurate now

@mauromsl mauromsl merged commit d9ebe49 into master Apr 17, 2020
@mauromsl mauromsl deleted the feature-hooks branch April 17, 2020 12:13
mauromsl added a commit that referenced this pull request Apr 23, 2020
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