Add simple JQL implementation

This commit is contained in:
Adrian Woźniak 2021-04-29 15:09:41 +02:00
parent 83ee058297
commit c06c936118
2 changed files with 6 additions and 1 deletions

View File

@ -228,7 +228,7 @@ impl CreateIssue {
issue_id: issue.id,
user_ids: assign_users,
}
.execute(conn);
.execute(conn)?;
issues.find(issue.id).get_result(conn).map_err(|e| {
log::error!("{:?}", e);
crate::DatabaseError::GenericFailure(

View File

@ -36,6 +36,11 @@ pub fn update(msg: Msg, model: &mut crate::model::Model, orders: &mut impl Order
crate::match_page_mut!(model, IssuesAndFilters)
.jql
.remove_from(idx);
let issues = super::IssuesAndFiltersPage::visible_issues(
model.issues(),
&crate::match_page!(model, IssuesAndFilters).jql,
);
crate::match_page_mut!(model, IssuesAndFilters).visible_issues = issues;
}
Msg::ResourceChanged(ResourceKind::Issue, OperationKind::ListLoaded, _) => {
let jql = &match_page!(model, IssuesAndFilters).jql;