mattn / go-redmine Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
struct field tag json:created_on
not compatible with reflect.StructTag.Get: bad syntax for struct tag value (vet)
It's missing quotes " around created_on.
Also same problem with a few fields on the Project struct.
Also TimeEntry has a typo for the SpentOn field and uses the wrong JSON field name:
SpentOn string json:"created_on"
tracker.go 15th line
res, err := http.Get(c.endpoint + "/trackers.json?key=" + c.apikey + c.getPaginationClause())
’http.Get‘ should be ‘c.Get'
it happend on when i want to connect to https local server without certificate
Possible to access via basic auth.
type TimeEntry struct
...
Hours float32
...
but must be
Hours float32
json:"hours"``
Without this changes TimeEntry modification does not work properly.
PS: may be it was planned and I miss something in yours API
When get an Issue, it is not possible to get the estimated hours.
Thank you for creating this great Redmine interface!
The API supports optional filter, example for users, which is helpful when dealing / looking up in a system with 1000s of users. This support is missing
Before creating or requesting a PR, the question is would you be in favor of strongly typing all possible filter clauses or just extend the methods with variadic filter string support?
Example idea:
func (c *Client) Users(f ...Filter) ([]User, error) {}
So one could call
c.Users()
c.Users(Filter{"name": "JDoe", "status": "2"})
I'd suggest variadic parameters as it keeps backward compatibility and is Redmine version agnostic
Hello!
I looked your code for listing projects, and, if i understand correct, you don't check, if number of projects is more than limit (default or set in const).
I looked in
godmine/main.go#L456
and
project.go#L58
but didn't find any checks, like in issues:
issue.go#L369
I hope i wrong, correct me if yes.
Have a good day!
I was looking to use godmine for building a custom workflow for things I do, but I'm new to Go. Is there any documentation on how to make this thing work for a newbie to this?
Thanks!
I need to use it and it isn't exported, can we please export this as Client please.
ticket is valid and can be deleted via redmine.
~/go-redmine/godmine$ ./godmine i d 104
Failed to delete issue: invalid character '<' looking for beginning of value
I am currently unable to find the documentation for mattn/go-redmine at pkg.go.dev.
This seems to be due to the fact that the repository does not contain the license file.
Perhaps if you could add the license file, we will be able to check the package documentation on the web.
It would be great if you could support this.
refs:
I want to specify parent_issue_id as well as Project_ID.
This is because when registering a ticket to an existing project, it becomes easier to classify the ticket by making it a child ticket of a specific ticket.
Hello! Thank you for this project but could you specify the license :)
Personally I prefer GPLv3 for important projects and WTFPL2 for non-important projects.
Thank you for great application.
My RedMine supports markdown.
So I want to open editor with filetype setting like: vim -c "set filetype=markdown"
.
There's start_date
in the response of issue API, but not in Issue struct.
$ curl http://localhost:8080/issues/23.json?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
{"issue":{"id":23,"project":{"id":1,"name":"testproject"},"tracker":{"id":4,"name":"Docs"},"status":{"id":1,"name":"New"},"priority":{"id":2,"name":"Normal"},"author":{"id":1,"name":"Redmine Admin"},"subject":"chapter1","description":"chapter1aa","start_date":"2018-08-20","due_date":"2018-08-25","done_ratio":0,"spent_hours":0.0,"total_spent_hours":0.0,"created_on":"2018-07-17T08:25:09Z","updated_on":"2018-07-17T08:36:42Z"}}
I need to fetch issues but apply some filters, for example status_id=* to get all stories including closed ones.
I was looking at the Issues() function and it doesn't really provide ways to pass in extra query params for filtering, which is sorely needed or I have to fetch everyting... a page at a time and filter over the results in Go.
I need this for a project now, so going to implement it all in a fork and see how it turns out.
Hi!
After making PUT request, response status code is 204 (no content), which is valid response, but go-redmine treats it as error and tries decode content body which is empty string.
Here it is:
Line 225 in b2dd060
In Redmine docs there are some pages that describes 204 code as confirmation that requested change was made:
https://www.redmine.org/projects/redmine/wiki/Rest_IssueCategories#PUT
https://www.redmine.org/projects/redmine/wiki/Rest_Memberships#PUT
https://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries#Updating-a-time-entry
etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.