Closed radist2s closed 1 month ago
Thank you for highlighting this.
Clarification: Currently, the is_overdue filter is not supported by the GET /payables endpoint, as the implementation of filters is still in progress by the backend team. At this stage, only the overdue label tag is available, and the full filter functionality, including is_overdue, will be added in a future update.
Impact:
• This issue is not critical and does not affect the app’s functionality. The main objective of adding the overdue label has been achieved, and no breaking changes have been introduced.
Next Steps:
• The backend team is aware of this and is actively working to complete the filter implementation. • The OpenAPI documentation (schema.json) will be updated once these features are fully supported.
Thanks again for catching this. We’ll continue to ensure the implementation aligns with our documentation. Please let me know if there are any other questions or concerns.
@vkuprin, thanks a lot for the clarification, will keep an eye out for updates.
Yo, have you solved the issue with the is_overdue
field in the filter?
@radist2s Yes, it’s covered by custom filters that you can create, and the ‘isOverdue’ feature has been removed
For instance you can pass now from our customisation monite.ts
MonitePayableTable: {
defaultProps: {
summaryCardFilters: {
Unpaid: {
status__in: ['draft', 'new', 'approve_in_progress', 'rejected'],
},
Scheduled: {
tag_ids: ['f4031683-7605-48c6-969c-dcfc5397935b'],
status__in: [
'draft',
'new',
'approve_in_progress',
'waiting_to_be_paid',
'partially_paid',
],
},
Paid: {
status__in: ['paid'],
},
/// you can put here logic for overdue based on what our payables query support as parametor and build even your own overdue logic
},
},
Then, it will be rendered as
During the migration of the Monite repository to the OpenAPI Qraft v2, I noticed a recent commit in
main
where Vitaliy added a filter for theis_overdue
field in Payables. However, according to our OpenAPI documentation, the GET/payables
endpoint does not support ais_overdue
query parameter.Details:
/payables
is_overdue
Possible Scenarios:
schema.json
hasn't been updated.Action Required:
is_overdue
query parameter is correctly implemented in the API.Additional Note: There was an issue with the implementation of the
getQueryData(…)
function in Qraft, which has been fixed in the new version. This issue caused an incorrect type realization, which might be related.