View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034368 | mantisbt | api rest | public | 2024-03-25 16:00 | 2024-04-01 19:22 |
Reporter | acoder2020 | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Product Version | 2.26.0 | ||||
Summary | 0034368: Accept timestamps (including historical/past dates) when posting notes via REST API | ||||
Description | Presently the created_at value is ignored when posting a note via REST API:
The resulting note is posted successfully, but with a timestamp of today (not 2020 as specified) I am importing 15 years of data into MantisBT and cannot have every note posted with today's date. It makes imported issues very difficult to read/follow. | ||||
Steps To Reproduce | Submit this JSON:
| ||||
Tags | No tags attached. | ||||
related to | 0034369 | acknowledged | Allow post-dated Created dates when submitting Issues via REST API |
This should also work if updating an existing note via REST API. |
|
@vboctor your opinion on this would be appreciated (see also 0034369). |
|
If not obvious, leaving |
|
Additionally, if |
|
I thought about the migration scenario before, but I never really implemented support for migrations via the REST API. Tweaks will have to be done in multiple places to make it work full as expected / desired. For example:
I'm OK with adding such support, but I think often we will have to protect it from general usage. For example, we now have a threshold that enables users to specify reporter name (vs. just be the signed in user). We would need the same for overriding fields likes created_at, updatd_at, user who added relationship, etc. There are two options to consider:
Open for other ideas, but I think the above suggestions reflect my initial thoughts. |
|
Fully agreed.
I like this second option better. The first one, if left enabled (intentionally or not), leaves the door open to introducing data integrity issues Until this is implemented, I believe the Bundled XmlImportExport plugin is the better approach. |
|
We have to wait for this to appear in REST API. We've invested several weeks in building a PHP script to migrate data from TRAC to MantisBT using REST API, bosses will not let us start over with a different method (XmlImportExport plugin) for this remaining issue. Will continue monitoring this and 0034369 |
|
I like the idea of placing this behind a config option as a master switch for these added submission options. |
|
Well, I'm sorry to say but don't hold your breath...
If you're on a schedule for your migration and really must have this feature to move forward, then you are welcome to submit a pull request to implement the functionality, and we can review it. If you can't do that, maybe you can ask the bosses if they would be willing to pay for it.. I personally have no intention to develop this in the short term, as I have neither the time nor the motivation. |
|