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

Set priority of markdown_messages #3113

Closed

Conversation

bernardbeckerman
Copy link
Contributor

Summary:
This diff:

  • Introduces OutputPriority, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
  • Introduces MessageOutput, which has fields text and priority.
  • Changes value type of Scheduler.markdown_messages dict from str to MessageOutput, so that all markdown_messages must have a priority associated with them.

Differential Revision: D66368295

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 25, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.43%. Comparing base (24e8ee3) to head (0f937a6).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ax/service/scheduler.py 91.30% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3113   +/-   ##
=======================================
  Coverage   95.43%   95.43%           
=======================================
  Files         503      503           
  Lines       50316    50342   +26     
=======================================
+ Hits        48018    48044   +26     
  Misses       2298     2298           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

bernardbeckerman added a commit to bernardbeckerman/Ax that referenced this pull request Nov 25, 2024
Summary:

This diff:
* Introduces `OutputPriority`, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
* Introduces `MessageOutput`, which has fields `text` and `priority`.
* Changes value type of `Scheduler.markdown_messages` dict from `str` to `MessageOutput`, so that all markdown_messages must have a priority associated with them.

Differential Revision: D66368295
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

bernardbeckerman added a commit to bernardbeckerman/Ax that referenced this pull request Nov 25, 2024
Summary:

This diff:
* Introduces `OutputPriority`, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
* Introduces `MessageOutput`, which has fields `text` and `priority`.
* Changes value type of `Scheduler.markdown_messages` dict from `str` to `MessageOutput`, so that all markdown_messages must have a priority associated with them.

Differential Revision: D66368295
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

bernardbeckerman added a commit to bernardbeckerman/Ax that referenced this pull request Nov 25, 2024
Summary:

This diff:
* Introduces `OutputPriority`, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
* Introduces `MessageOutput`, which has fields `text` and `priority`.
* Changes value type of `Scheduler.markdown_messages` dict from `str` to `MessageOutput`, so that all markdown_messages must have a priority associated with them.

Differential Revision: D66368295
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

bernardbeckerman added a commit to bernardbeckerman/Ax that referenced this pull request Nov 25, 2024
Summary:

This diff:
* Introduces `OutputPriority`, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
* Introduces `MessageOutput`, which has fields `text` and `priority`.
* Changes value type of `Scheduler.markdown_messages` dict from `str` to `MessageOutput`, so that all markdown_messages must have a priority associated with them.

Differential Revision: D66368295
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

Summary:

This diff:
* Introduces `OutputPriority`, which categorizes the urgency and therefore placement of each message, to be expanded to other output types.
* Introduces `MessageOutput`, which has fields `text` and `priority`.
* Changes value type of `Scheduler.markdown_messages` dict from `str` to `MessageOutput`, so that all markdown_messages must have a priority associated with them.

Reviewed By: Balandat

Differential Revision: D66368295
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66368295

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 53420b6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants