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
Add documentation for attachmentsprefix #19
Comments
Yes sorry about that, attachmentsprefix is the path to the tickets directory copied over from trac. For example, in our trac, it's "bond_trac\attachments\ticket". When I was writing the feature, I pushed that ticket directory to the github repository and changed the prefix such that clicking on the generated comments went there instead of leaving the site. |
Version 0.4 used ISO format for dates and times, which should work fine with most SQL databases. However, when dircco fixed the outdated API calls with #18, he changed the date format to Posix time stamps which AFAIK is required by sqlite's somewhat clumsy date functions. The only solution I currently can think of is to provide two SQL statements for each export: one for sqlite, and one for "proper" SQL databases. The import code can first try to parse date columns using ISO format and if that fails resort to Posix. Does anyone see a better solution than this? |
I took at look at the contributed code. To me it seems that "attachments" are actually comments that link to an URL where the attachments have to be located. As dirocco suggested you can add the attachments as files to you project. For example in a project After performing a checkout of With this setup, you would set the following options in you *.cfg:
However, I didn't test this because I don't have a single project with attachments. |
It would be nice to have documentation explaining how to port attachments. The "attachmentsprefix" config key is not explained (from what I could see at least) and I had to look through the code to figure out what to put for this key.
Also, query_attachments.sql selects five columns (the time in Posix format and as a datetime string) but the script expects only the time in Posix format. Removing the datetime column fixed the issue for me.
This tool was very helpful- thank you!
The text was updated successfully, but these errors were encountered: