* chore: added issue relations in issue listing * chore: added pagination for issue detail endpoint * chore: bulk date update endpoint * chore: appended the target date * chore: issue relation new types defined * fix: order by and issue filters * fix: passed order by in pagination * chore: changed the key for issue dates * Revamp Timeline Layout * fix block dragging * minor ui fixes * improve auto scroll UX * remove unused import * fix timeline layout heights * modify base timeline store * Segregate issue relation types --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
24 lines
815 B
Python
24 lines
815 B
Python
def get_inverse_relation(relation_type):
|
|
relation_mapping = {
|
|
"start_after": "start_before",
|
|
"finish_after": "finish_before",
|
|
"blocked_by": "blocking",
|
|
"blocking": "blocked_by",
|
|
"start_before": "start_after",
|
|
"finish_before": "finish_after",
|
|
}
|
|
return relation_mapping.get(relation_type, relation_type)
|
|
|
|
|
|
def get_actual_relation(relation_type):
|
|
# This function is used to get the actual relation type which is store in database
|
|
actual_relation = {
|
|
"start_after": "start_before",
|
|
"finish_after": "finish_before",
|
|
"blocking": "blocked_by",
|
|
"blocked_by": "blocked_by",
|
|
"start_before": "start_before",
|
|
"finish_before": "finish_before",
|
|
}
|
|
|
|
return actual_relation.get(relation_type, relation_type)
|