-
Notifications
You must be signed in to change notification settings - Fork 95
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
recipe-api returns multiple types for dateModified #1121
Comments
Could you please send me an offending recipe? I suspect you know at least one. Just go to the recipe folder and zip the complete folder named as the recipe and send the zip here, if you do not mind. I suspect that it was generated with an older version that did not filter the dates. I will try to get that fixed but cannot promise it to be released in the next few days. There is a plan ahead but that needs quite some code leverage to be implemented. Eventually, we will need to make a short fix. |
Related to #1110 |
Sure! Oh no worries, i am totally fine if this is only fixed when the stable v1 api is released. |
The stale bot will be effective after the next release. So no worries. |
Oh no, please dont add a stale-bot. They are the most annoying development on github in the past. They tend to keep closing valid issues, encurage "oneplussing", annoy everyone that is subscribed to a ticket and possibly drive down interactions with new people. Is it really nessessary to have one? |
Well, it also very helpful, since often users creating an issue completely forget about it (which is totally human) and do not close it if it is resolved. Considering the very small amount of developers in this project, it is quite helpful not to have to read through all the issues regularly just to ask the issue creators if the issue is still valid over and over again ;) |
The next release 0.9.14 will be not too long. Normally, I try to push out a release monthly to get the translations out as well. We are almost due for the next release. However there are still some pending issues/PRs open, so it will be eventually 2 or 3 weeks. The stale bot will not take action before 45 days (!), which is way after the release. I suspect that a recent refactory of some code solved the problem already. See my comment. You can test with the current development version if you like. We will have to see if the problem is still present then. I was not able to reproduce it anymore but I had only one test case. |
@seyfeb But this is also not the burden of the ticket-creator. If an issue is beeing worked on (or fixed) then the one who solves it should close it. There are many valid reasons why a ticket may be closed (outdated, fixed, not enough information, duplicate, etc) None of them can be detected by bots (that's not entirely true, there is a duplicate bot somewhere) and need some form of interaction from a human. Closing tickets merely because a timeout expired is nearly always a bad idea. It leads to annoyance and closed issues that are actually not solved. That is bad. @christianlupus I am not worried about this particular ticket. I am generally opposing stalebots because imho they do more harm than good and are a solution to a problem that does not exist in the first place |
This issue was not updated for 45 days. It is therefore marked as stale. When no update occurs within the next 7 days, this issue will be closed automatically in the next 7 days. |
I have tested this behaviour in 0.9.15. It seems the endpoint moved to |
Yes, you are right. The There is migration information available on the GitHub pages documentation. You see, that all endpoints are located under BTW: If you are developing an extension to the app that uses the API, are you using Matrix by chance? There is a room dedicated to 3rd party extensions where such API changes are announced. Apart from that, I wrote some lines in #1199. I suspect that the problem has settled in the meantime. If it reappears, feel free to comment, we can reopen then. |
Description
/apps/cookbook/api/recipes
provides a json list with all recipes.Each recipe contains a
dateModified
. As per documentation, this should be a string of this format:"2021-04-28T09:52:59+0000"
Sometimes it does not return such a string, but a unix timestamp. In such cases,
dateCreated
also does not behave correctly, it should also return the above string, but whendateModified
is a unix timestamp, it is usually '0' (of type int)I even have some entries where both
dateCreated
anddateModified
are not int, but string while beeing unix timestamps.Reproduction
Steps to reproduce the behavior:
Sadly, i am not able to find a common denominator what makes the "broken" entries the same and different from the rest.
Expected behavior
All recipes use the same format and deal with problems in the backend.
Eg. if
dateCreated
is not set, it should be the same asdateModified
(and stay that way)Actual behavior
dateModified
does not have a clearly defined type and formatVersions
Nextcloud server version: 23
Cookbook version: 0.9.13
Database system: MariaDB
The text was updated successfully, but these errors were encountered: