Redmine: Developmenthttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292024-03-15T09:09:53ZRedmine
Redmine Development: Where should I post about functional suggestions?https://www.redmine.org/boards/4/topics/695162024-03-15T09:09:53Ztomy shen
<p>Hi,<br />I am a user who is designing a redmine theme. I am currently having difficulties with the design of the forum pages. For example, the hyperlinks such as reply do not have any css class tags for me to design. It seems that the file should be in the following location:<br />/usr/src/redmine/app/views/messages/show.html.erb</p>
<p>If I have functional suggestions for redmine, is it appropriate to leave a message here?<br />Thanks.</p>
<p><a href="https://github.com/tomy-shen/TW-Style" class="external">My Theme</a></p> Development: RE: Creating issues does not work after upgrading Redmine to version 5.0.5https://www.redmine.org/boards/4/topics/68497?r=69293#message-692932024-01-05T11:11:28ZLewap WitzLabO
<p>not yet, but I haven't even tried it for a few months - I'm still waiting, maybe someone will write something ;)</p> Development: RE: Creating issues does not work after upgrading Redmine to version 5.0.5https://www.redmine.org/boards/4/topics/68497?r=69286#message-692862024-01-04T10:31:02ZGevorg Hoghmrtsyan
<p>Did you find the solution?</p> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=69240#message-692402023-12-14T20:09:14ZPavel Yeloyev
<p>Lorenzo Meneghetti wrote in <a class="message" href="https://www.redmine.org/boards/4/topics/68520?r=69216#message-69216">RE: HTML changes to webpage?</a>:</p>
<blockquote>
<p>Pavel Yeloyev wrote:</p>
<blockquote>
<p>If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?</p>
</blockquote>
<p>Don't believe to previous replies (may be autogenerated). Redmine is a dynamic web application, you have to study basic internals of RubyOnRails applications and then <a href="https://www.redmine.org/projects/redmine/wiki/Developer_Guide" class="external">Redmine developer guide</a> (some books are also available).</p>
<p>Regards</p>
</blockquote>
<p>Yes, that is my main problem. Since the HTML pages that Redmine displays don't exist as HTML pages, but as inline code inserts, I was wondering if someone could tell me which file addresses the Edit Issue screen. I don't need much: just want to make that screen's Note box be automatically cloned (up to the character limit) into the time entry description box.</p> Development: Login with correct user name and password does not work (company account). C#https://www.redmine.org/boards/4/topics/692342023-12-13T12:32:43ZGevorg Hoghmrtsyan
<p>Hi,</p>
<p>after the last update of Redmine, logging with the correct user name and password no longer works. Here is the code.</p>
<p>RedmineManager o_Login = new RedmineManager(host, username, password, MimeFormat.Json);</p>
<p>Then I took my apikey and was able to log in successfully.</p>
<p>RedmineManager o_Login = new RedmineManager(host, ApiKey, MimeFormat.Json);</p>
<p>But i need to login with username and password, so that i can get the apikey.</p>
<p>I think there is a change in the structure of the username, but I can't find anything helpful. I've been stuck on this for 2 days, would be very grateful if I could get some help.</p>
<p>Thanks in advance.<br />Gevorg</p> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=69216#message-692162023-12-10T11:50:40ZLorenzo Meneghetti
<p>Pavel Yeloyev wrote:</p>
<blockquote>
<p>If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?</p>
</blockquote>
<p>Don't believe to previous replies (may be autogenerated). Redmine is a dynamic web application, you have to study basic internals of RubyOnRails applications and then <a href="https://www.redmine.org/projects/redmine/wiki/Developer_Guide" class="external">Redmine developer guide</a> (some books are also available).</p>
<p>Regards</p> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=69214#message-692142023-12-10T10:20:02ZGrace Martin
<p>If you're running a website on a Debian system and want to tweak the HTML and JavaScript, it's possible but be careful. Modifying code can have unintended consequences. If you're sure about it:</p>
<p>1- Find the Web Server Root: Look in places like /var/www/html or /usr/share/nginx/html for the main website files.</p>
<p>2- App-Specific Directories: Check if there's a specific directory for your web app, often mentioned in its documentation.</p>
<p>3- Check Version Control: If the site uses Git or another version control system, you might find the code there.</p>
<p>4-Package Manager Installations: For packages installed via APT, files might be distributed across standard locations.</p>
<p>Regarding changing text boxes on the Issue Edit page, start by identifying the application that runs it. Once you find the app's files, hunt for the HTML and JavaScript related to the Issue Edit page.</p>
<p>Few reminders</p>
<p>- Always back up before you mess with code.<br />- Understand the rules—modifying the code might have legal implications.<br />- Future updates to the app could undo your changes.</p>
<p>Generally, it's smarter to use the application's built-in customization options. Messing with core files can lead to headaches down the line. If there's a plugin system or theming option, that's usually the safer route.</p>
<p>To gain additional insights, please refer to the following link: <a class="external" href="https://iqratechnology.com/academy/html-training/">https://iqratechnology.com/academy/html-training/</a></p> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=69128#message-691282023-11-27T08:57:49ZKhan Zain
<p>To make HTML changes to a webpage, locate the HTML file or code associated with the specific webpage you want to modify. Use a text editor to open and edit the HTML file, making the desired changes such as updating content, adding elements, or adjusting styles. After saving the changes, refresh the webpage in your browser to see the updated HTML content reflected on the site.</p> Development: RE: Upgrade Redmine from 1.2.1 -> 5.x :)https://www.redmine.org/boards/4/topics/69116?r=69118#message-691182023-11-22T11:30:43ZLadislav Kudláček
<p>I am very sorry, bad thread. I'm asking for deletion, I've submitted a ticket in the "Help" thread.</p> Development: Upgrade Redmine from 1.2.1 -> 5.x :)https://www.redmine.org/boards/4/topics/691162023-11-22T11:28:28ZLadislav Kudláček
<p>Hello,<br />We have redmine at version 1.2.1 on CentOS 5. We are happy with it, but would like to upgrade to the current version on Ubuntu/Debian OS. Is it even possible? I tried to upgrade but ran into problems with Ruby Rails versions. The versions are very old and I couldn't upgrade. Could someone please advise me on how to upgrade to the current version?</p>
<p>Thank you</p> Development: RE: Start developinghttps://www.redmine.org/boards/4/topics/68479?r=69084#message-690842023-11-14T10:10:28Zmilburn otis
<p>Absolutely! Starting your journey into plugin development is exciting. Given your background in Ruby, here's a suggested path:</p>
<p>Deepen Ruby Knowledge:<br />Ensure you have a solid understanding of Ruby fundamentals. Dive deeper into object-oriented programming and key concepts.</p>
<p>Learn the Target Platform:<br />Identify where you want your plugins to work. Whether it's a web framework like Ruby on Rails, a CMS like WordPress, or another platform, familiarize yourself with its architecture.</p>
<p>Explore Plugin Documentation:<br />Look into the documentation of the platform you've chosen. Understand the structure and requirements for developing plugins within that environment.</p>
<p>Hands-On Practice:<br />The best way to learn is by doing. Start with simple plugins. For example, if you're into web development, create a basic plugin that adds a feature to a web application.</p>
<p>Version Control with Git:<br />Learn the basics of Git for version control. It's a crucial skill for collaboration and tracking changes in your codebase.</p>
<p>Engage with the Community:<br />Join forums, attend meetups, or participate in online communities related to your chosen platform. Engaging with experienced developers can provide valuable insights.</p>
<p>Study Existing Plugins:<br />Examine plugins developed by others. This will give you a better understanding of best practices, code structure, and common challenges.</p>
<p>Build Complexity Gradually:<br />As you gain confidence, gradually increase the complexity of your plugins. Tackle more advanced features and functionalities.</p>
<p>Seek Feedback:<br />Don't hesitate to share your work for feedback. Online platforms like GitHub are great for collaboration and learning from experienced developers.</p>
<p>Stay Updated:<br />The tech landscape evolves. Regularly check for updates in your chosen platform and any new tools or practices in the plugin development domain.</p>
<p>Remember, patience and persistence are key. Happy coding!</p>
<p>Regards<br />Zera Creative</p> Development: RE: Auto-Close parent after his children are closed.https://www.redmine.org/boards/4/topics/39161?r=69062#message-690622023-11-03T14:15:29ZLukas Profit
<p>Anyone know how to change parent status when only one of child status have example in progress (not all child have in progress, but only one of them)</p> Development: RE: an integration with Redminehttps://www.redmine.org/boards/4/topics/54446?r=68960#message-689602023-10-20T09:58:24ZMichael Blint
<p>Goof article Read</p> Development: Focus on new versionshttps://www.redmine.org/boards/4/topics/689252023-10-10T06:24:06ZC S
<p>I was thrilled to see that the development of version 5.1.0 has made great progress in the last few days. My biggest compliments to everyone involved!</p>
<p>However, I still see an entry in the roadmap for the next level of version 4... a version whose core drivers (Ruby, etc.) are already EOL.<br />In my opinion, it would be good for the project to get rid of this version as quickly as possible and focus on version 5.x...</p> Development: RE: Automatic expansion for the "Files" part in a wiki pagehttps://www.redmine.org/boards/4/topics/62316?r=68818#message-688182023-09-05T07:49:48ZEric Brun
<p>Thank you very much !</p> Development: RE: REST API Error in Xamarin Forms .NEThttps://www.redmine.org/boards/4/topics/66155?r=68701#message-687012023-08-01T06:08:04ZErnesto Kautz
<p>Владимир Косякин wrote:</p>
<blockquote>
<p>When connecting to the RedMine Api, the android application gives an error "System.Net.WebException: 'An exception occurred during a WebClient request.'". Although the same code in the console c# application works. The mobile application worked stably until 2021.10.01, there were no errors. Nothing in the code has changed. Maybe someone has the same problem?</p>
</blockquote>
<p>Hello,</p>
<p>The "System.Net.WebException: An exception occurred during a WebClient request" error in a Xamarin Forms .NET Android application when connecting to the RedMine API could be due to various reasons. Some possible causes to investigate are changes in the RedMine API itself, network-related issues, or updates to the Android operating system that might have affected the application's behavior.</p>
<p>Since the code was working stably until October 1, 2021, it's essential to check whether there have been any updates or changes to the RedMine API after that date. Additionally, review any network-related code to ensure it is handling connections and timeouts correctly.</p>
<p>It's also possible that the Xamarin.Forms or .NET libraries used in the Android application might have received updates that impact how WebClient requests are handled. Checking for version mismatches or known issues in those libraries could be helpful.</p>
<p>To pinpoint the exact cause of the issue, detailed logs and debugging in the Android application will be necessary. It's also worth seeking support from Xamarin.Forms and RedMine API communities to see if others have encountered a similar problem or found any solutions.</p>
<p>I hope the information may helps you.</p> Development: RE: User Interface Design Ruleshttps://www.redmine.org/boards/4/topics/68082?r=68633#message-686332023-07-06T09:09:49ZJames Woodall
<p>You can go through my comment May be it helps you</p>
<p>Consistency: Maintain consistency throughout the interface by using consistent visual elements, layout, and interaction patterns. Consistency helps users understand and navigate the interface more easily.</p>
<p>Simplicity: Keep the interface simple and minimize complexity. Avoid cluttered designs and unnecessary elements that can confuse or overwhelm users.</p>
<p>Clear Navigation: Provide clear and intuitive navigation options, such as menus, breadcrumbs, or navigation bars. Users should be able to easily move between different sections or screens of the interface.</p>
<p>Visual Hierarchy: Use visual hierarchy to prioritize and organize elements on the screen. Highlight important information and make it stand out through appropriate use of size, color, contrast, and spacing.</p>
<p>Feedback and Responsiveness: Provide visual and interactive feedback to users to acknowledge their actions and help them understand the system's response. For example, provide visual cues when a button is pressed or loading is in progress.</p>
<p>Readability and Legibility: Ensure that text is easily readable by using appropriate font sizes, contrast, and spacing. Use fonts and colors that are easy on the eyes and consider the accessibility needs of all users.</p>
<p>Error Handling: Design error messages and notifications that are clear, concise, and actionable. Help users understand what went wrong and provide guidance on how to correct the error.</p>
<p>Usability Testing: Conduct usability testing with representative users to gather feedback and identify areas for improvement. Regularly test and iterate on the interface design based on user feedback.</p>
<p>Thanks and regards<br />James Woodall</p> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=68589#message-685892023-06-27T14:22:53ZPavel Yeloyev
<p>I don't see "Jenkins."</p>
<pre>
cd /var/lib/
ls
apache2 dpkg initramfs-tools ntp private systemd
apt fail2ban logrotate os-prober python tklbam
cron-apt git man-db pam resolvconf ucf
dbus grub misc polkit-1 shellinabox usbutils
dehydrated inithooks mysql postfix stunnel4 vim
</pre> Development: RE: HTML changes to webpage?https://www.redmine.org/boards/4/topics/68520?r=68587#message-685872023-06-27T11:14:47ZRonny James
<p>Yes, you can edit the HTML/JavaScript files for the Issue Edit page in a Debian system. The files are located in the /var/lib/jenkins/jenkinshome/war/static/ directory. You can edit the issue-edit.html file to modify the way the text boxes work, and the issue-edit.js file to modify the JavaScript code for the page.</p>
<p>It is safe to modify these files, but make sure you make a backup before you start, and use a text editor that can handle both HTML and JavaScript files. You can also use a debugger to help you track down any errors in your code.</p> Development: HTML changes to webpage?https://www.redmine.org/boards/4/topics/685202023-06-06T16:12:51ZPavel Yeloyev
<p>If installed on a Debian system, is it possible to easily change the HTML/JavaScript of the pages? For example I want to modify the way the text boxes in the Issue Edit page works. Is it safe/simple? Where are the JS/HTML components located?</p> Development: RE: an integration with Redminehttps://www.redmine.org/boards/4/topics/54446?r=68500#message-685002023-05-25T09:25:09ZTaras Lodels
<p>As a developer at Apiko software development company <a class="external" href="https://apiko.com/">https://apiko.com/</a>, I am incredibly proud of the integration we have created with Redmine. This integration is a testament to our team's dedication, expertise, and commitment to delivering exceptional software solutions.</p>
<p>The integration with Redmine seamlessly connects various systems and tools, providing a comprehensive project management experience. It allows users to effortlessly synchronize data, track progress, and collaborate effectively within the Redmine environment.</p>
<p>One of the standout features of our integration is its flexibility and customizability. We have designed it to adapt to the unique needs and workflows of different businesses. Whether it's automating task creation, integrating with external systems, or generating insightful reports, our integration with Redmine can be tailored to meet specific requirements.</p> Development: Creating issues does not work after upgrading Redmine to version 5.0.5https://www.redmine.org/boards/4/topics/684972023-05-24T06:02:38ZLewap WitzLabO
<p>After upgrading Redmine to 5.0.5 my previously working code stopped working:<br />I used this code before and it worked:</p>
<pre><code class="csharp syntaxhl"> <span class="kt">string</span> <span class="n">projectName</span> <span class="p">=</span> <span class="s">"My project name"</span><span class="p">;</span>
<span class="kt">string</span> <span class="n">issueType</span> <span class="p">=</span> <span class="s">"MyIssueType"</span><span class="p">;</span>
<span class="kt">string</span> <span class="n">priorityName</span> <span class="p">=</span> <span class="s">"NamePrior"</span><span class="p">;</span>
<span class="kt">var</span> <span class="n">parameters</span> <span class="p">=</span> <span class="k">new</span> <span class="n">NameValueCollection</span> <span class="p">{</span> <span class="p">{</span> <span class="s">"status_id"</span><span class="p">,</span> <span class="s">"*"</span> <span class="p">}</span> <span class="p">};</span>
<span class="kt">var</span> <span class="n">prijectList</span> <span class="p">=</span> <span class="n">manager</span><span class="p">.</span><span class="n">GetObjects</span><span class="p"><</span><span class="n">Project</span><span class="p">>(</span><span class="n">parameters</span><span class="p">);</span>
<span class="kt">var</span> <span class="n">trackersList</span> <span class="p">=</span> <span class="n">manager</span><span class="p">.</span><span class="n">GetObjects</span><span class="p"><</span><span class="n">Tracker</span><span class="p">>(</span><span class="n">parameters</span><span class="p">);</span>
<span class="kt">var</span> <span class="n">priorityList</span> <span class="p">=</span> <span class="n">manager</span><span class="p">.</span><span class="n">GetObjects</span><span class="p"><</span><span class="n">IssuePriority</span><span class="p">>(</span><span class="n">parameters</span><span class="p">);</span>
<span class="n">Issue</span> <span class="n">issue</span> <span class="p">=</span> <span class="k">new</span> <span class="nf">Issue</span><span class="p">();</span>
<span class="n">issue</span><span class="p">.</span><span class="n">Project</span> <span class="p">=</span> <span class="n">prijectList</span><span class="p">.</span><span class="nf">Where</span><span class="p">(</span><span class="n">o</span> <span class="p">=></span> <span class="n">o</span><span class="p">.</span><span class="n">Name</span> <span class="p">==</span> <span class="n">projectName</span><span class="p">).</span><span class="nf">SingleOrDefault</span><span class="p">();</span>
<span class="n">issue</span><span class="p">.</span><span class="n">Subject</span> <span class="p">=</span> <span class="s">"example title"</span><span class="p">;</span>
<span class="n">issue</span><span class="p">.</span><span class="n">Description</span> <span class="p">=</span> <span class="s">"example description"</span><span class="p">;</span>
<span class="n">issue</span><span class="p">.</span><span class="n">Tracker</span> <span class="p">=</span> <span class="n">trackersList</span><span class="p">.</span><span class="nf">Where</span><span class="p">(</span><span class="n">o</span> <span class="p">=></span> <span class="n">o</span><span class="p">.</span><span class="n">Name</span> <span class="p">==</span> <span class="n">issueType</span><span class="p">).</span><span class="nf">SingleOrDefault</span><span class="p">();</span>
<span class="n">issue</span><span class="p">.</span><span class="n">Priority</span> <span class="p">=</span> <span class="n">priorityList</span><span class="p">.</span><span class="nf">Where</span><span class="p">(</span><span class="n">o</span> <span class="p">=></span> <span class="n">o</span><span class="p">.</span><span class="n">Name</span> <span class="p">==</span> <span class="n">priorityName</span><span class="p">).</span><span class="nf">SingleOrDefault</span><span class="p">();</span>
<span class="c1">//string documentPath = @"C:\document.txt";</span>
<span class="c1">//byte[] documentData = System.IO.File.ReadAllBytes(documentPath);</span>
<span class="c1">//Upload attachment = manager.UploadFile(documentData);</span>
<span class="c1">//attachment.FileName = "document.txt";</span>
<span class="c1">//attachment.Description = "przykładowy plik";</span>
<span class="c1">//attachment.ContentType = "text/plain";</span>
<span class="c1">//IList<Upload> attachments = new List<Upload>();</span>
<span class="c1">//attachments.Add(attachment);</span>
<span class="c1">//issue.Uploads = attachments;</span>
<span class="n">manager</span><span class="p">.</span><span class="nf">CreateObject</span><span class="p">(</span><span class="n">issue</span><span class="p">,</span> <span class="s">"7"</span><span class="p">);</span>
</code></pre>
<p>1.) first problem.</p>
<p>when trying to create a task without attachments, in the line:<br />manager.CreateObject(issue, "7");<br />exception is thrown:<br />Redmine.Net.Api.Exceptions.RedmineException: 'The XML document contains an error (1, 40).'<br />InnerException 1 of 2: InvalidOperationException: The XML document contains an error (1, 40).<br />InnerException 2 of 2: InvalidOperationException: <issues xmlns=''> was not expected.</p>
<p>2.) second problem</p>
<p>if I try to create and add an attachment first (which is what the commented out code does) then in the line:<br />Upload attachment = manager.UploadFile(documentData);<br />exception is thrown:<br />System.Net.WebException: 'An exception occurred during the WebClient request.'<br />InnerException 1 of 2:<br />NotFoundException: Not Found<br />InnerException 2 of 2:<br />WebException: The remote server returned an error: (404) Not Found.</p>
<p>What does it mean? <br />Previously it worked now it doesn't work, how should the correct creation of tasks/issues look like on Redmine 5.0.5?</p>
<p>in the case of the second problem description - I am sure that the file exists and has the correct path</p> Development: RE: Start developinghttps://www.redmine.org/boards/4/topics/68479?r=68482#message-684822023-05-18T21:06:41ZMayama Takeshimayamatakeshi@gmail.com
<p>Hi, I'm no expert in redmine development.<br />But I would suggest you to follow the "Plugin Development" section in:<br /> <a class="external" href="https://www.redmine.org/projects/redmine/wiki/developer_guide">https://www.redmine.org/projects/redmine/wiki/developer_guide</a></p>
<p>In my case, I wrote a single plugin without learning rails previously.<br />I just followed the tutorial and checked how other plugin developers were doing things.</p>
<p>So you could search for plugins that interest you or do something similar to what you plan to do and study their code.</p> Development: Start developinghttps://www.redmine.org/boards/4/topics/684792023-05-18T07:19:09ZA F
<p>I would like to start developing plugins by my own but I only have done one online ruby course. As experts developing plugins what path do you think I should follow to learn?</p>
<p>Thanks.</p> Development: Display Regexp for custom fieldshttps://www.redmine.org/boards/4/topics/684232023-04-28T13:30:09ZMatthew Paul
<p>Suggestion for display of Custom fields -</p>
<p>(Originally this was a suggestion just for LINK type fields because that's where it would be most useful. But I changed the title because actually having the ability to display something different than what is contained in a custom field would be useful in general)</p>
<ul>
<li>Currently when you define a Link type custom field, you can specify a Regexp which is then used to validate the field - very useful</li>
<li>You can also use the <span>value</span> in the URL field to build a URL - so you could add in an external ticket 12345 for example, and then the url would be built as <a class="external" href="http://somesite.com/12345">http://somesite.com/12345</a> - also very useful!</li>
<li>It would be good to add a DISPLAY regexp for a link field - because very often you want the user to be able to just copy a link in some external system, and allow them to paste that link right in the custom field, but when it displays, it shows just the regexp for that. For example -</li>
</ul>
<p>Custom Link Field - Freshdesk<br />Custom Link Value - <a class="external" href="https://somecompany.freshservice.com/helpdesk/tickets/12345">https://somecompany.freshservice.com/helpdesk/tickets/12345</a><br />Display Regexp (new field that I'm suggesting) - (?<=)\d+<br />Value displayed and linked - 12345 (but using the same full link as shown above)</p>
<p>I'm way back on my version of redmine, so maybe someone already did this, but if not, I think it would be very useful</p> Development: User Interface Design Ruleshttps://www.redmine.org/boards/4/topics/680822023-02-03T06:47:52ZHie HQ
<p>What is User Interface Design Rules?</p> Development: Some notes on install for current version 5.0.4https://www.redmine.org/boards/4/topics/679932022-12-30T12:01:16ZJoan J
<p>I am follwing the install docs for the current version 5.0.4 on ubuntu 22.04 (<a href="https://www.redmine.org/projects/redmine/wiki/redmineinstall#Supported-database-back-ends" class="external">here</a>), and found some parts of the document that need clarification (or being updated), I would have done it myself but the page is locked</p>
<ul>
<li>On supported database backends (<a class="external" href="https://www.redmine.org/projects/redmine/wiki/redmineinstall#Supported-database-back-ends">https://www.redmine.org/projects/redmine/wiki/redmineinstall#Supported-database-back-ends</a>)</li>
</ul>
<p>There should be a note telling you to install the development headers for postgres (libpq-dev on debian/ubuntu - postgresql-devel on centos)</p>
<ul>
<li>On step 4<br />Bundler discourages the use of --without as a flag, instead recommending to use it as a config option, so it should be
<p>bundle config set --local without 'development test'</p></li>
</ul>
<p>And then all the commands without the --without flag</p>
<pre><code>bundle install</code></pre>
<p>And </p>
<pre><code>bundle install rmagick</code></pre>
<ul>
<li>On Step 9<br />On recent rails versions the server being used needs to be passed with -u, so instead of <br /> bundle exec rails server webrick -e production<br />It will be<br /> bundle exec rails server -u webrick -e production</li>
</ul>
<p>Also in the additional dependencies there should be a tip on installing webrick (now it only mentions puma) since is needed later in the install</p> Development: RE: Registration Activation Email Gmail not Coming Thruhttps://www.redmine.org/boards/4/topics/67433?r=67655#message-676552022-09-26T12:17:42ZMikami Yasuhiro
<p>I'm too. <br />Maybe, it's caused by there is no SPF record of redmine.org.</p>
<pre>
$ dig redmine.org txt
; <<>> DiG 9.16.1-Ubuntu <<>> redmine.org txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4276
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 9d83e687228398c0474fb154633196982132f9e00e78e5e9 (good)
;; QUESTION SECTION:
;redmine.org. IN TXT
;; AUTHORITY SECTION:
redmine.org. 600 IN SOA a.dns.gandi.net. hostmaster.gandi.net. 1641626797 10800 3600 604800 10800
;; Query time: 840 msec
;; SERVER: 172.18.128.1#53(172.18.128.1)
;; WHEN: Mon Sep 26 21:10:05 JST 2022
;; MSG SIZE rcvd: 130
</pre> Development: RE: New Custom Field type providing an enumeration whose values are set in the projecthttps://www.redmine.org/boards/4/topics/58121?r=67618#message-676182022-09-19T16:24:27ZEugenia B.
<p>Hi,</p>
<p>We use a Bitnami Redmine 5.0.2 docker version (docker.io/bitnami/redmine:5.0.2), and we have the follow exception when upgrade this plugin to last version:</p>
<p>I, [2022-09-19T15:37:02.887614 <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: New &quot;Open Issues assigned to me&quot; view for /my/page (Closed)" href="https://www.redmine.org/issues/217">#217</a>] INFO -- : o=>Starting Redmine Smile Project Enumerations Custom Field Format plugin for Redmine<br />I, [2022-09-19T15:37:02.887769 <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: New &quot;Open Issues assigned to me&quot; view for /my/page (Closed)" href="https://www.redmine.org/issues/217">#217</a>] INFO -- : o=>Application user :<br />W, [2022-09-19T15:37:03.060299 <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: New &quot;Open Issues assigned to me&quot; view for /my/page (Closed)" href="https://www.redmine.org/issues/217">#217</a>] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.<br />W, [2022-09-19T15:37:03.124759 <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: New &quot;Open Issues assigned to me&quot; view for /my/page (Closed)" href="https://www.redmine.org/issues/217">#217</a>] WARN -- : Creating scope :visible. Overwriting existing method Principal.visible.<br />App 217 output: Error: The application encountered the following error: expected file /opt/bitnami/redmine/plugins/redmine_smile_project_enumerations_custom_field_format/lib/project_enumeration_field_format.rb to define constant ProjectEnumerationFieldFormat, but didn't (Zeitwerk::NameError)</p>
<p>Any ideas?</p>
<p>Best regards</p> Development: RE: Registration Activation Email Gmail not Coming Thruhttps://www.redmine.org/boards/4/topics/67433?r=67489#message-674892022-08-12T02:49:10Zfuminori ido
<p>Me too. I couldn't register my gmail address so that I had to use non-gmail to register here.</p>
<p>Could any admin please check what's going wrong?</p> Development: RE: bounties, crowdfunding: how to fund things in Redmine?https://www.redmine.org/boards/4/topics/67236?r=67453#message-674532022-08-04T19:00:29ZDaniel Pocock
<p>Thanks for the feedback.</p>
<p>I generally agree with all the points you make but I don't think that these arguments eliminate the case for bounties and crowdfunding. These points simply suggest that people should set a higher budget and maybe keep some money in reserve for regressions that appear within 3 to 6 months.</p>
<p>On the topic of plugins, I agree that creating a plugin is always better than modifying the core project. In turn, the plugin API needs to be extremely stable between major releases. Otherwise a whole bunch of plugins vanish each time the API changes.</p>
<p>However, I feel there are some specific cases where modifying the core project is necessary. For example, if there was agreement on the request to have deadlines that include both date and time probably needs to be a change in the core project. That feature could not be provided with a plugin. Doing this for a field that is used so widely may break some plugins, so it contradicts the point I made in the previous paragraph but nonetheless I feel it is important.</p>
<p>On the arguments you make regarding the need (or lack of need) for that feature, could you please include your comments as a comment in the ticket itself and I will respond to those points there?<br /><a class="external" href="https://www.redmine.org/issues/5458">https://www.redmine.org/issues/5458</a></p>
<p>The question that arises then is how to collect the right amount of money and share it around fairly</p> Development: Registration Activation Email Gmail not Coming Thruhttps://www.redmine.org/boards/4/topics/674332022-07-28T00:10:53ZJeff H
<p>Does any developer know why the Redmine registration email is not coming to gmail accounts?</p>
<p>My friend and I both signed up 3 days ago and then today on gmail accounts. Neither one of us has received an email.</p>
<p>Spam folder empty<br />No other folders have emails<br />No blocks or email rejections in the gmail/settings either</p>
<p>Thanks!</p> Development: RE: bounties, crowdfunding: how to fund things in Redmine?https://www.redmine.org/boards/4/topics/67236?r=67319#message-673192022-06-08T10:20:56ZHolger Just
<p>I don't think any of the "core" developers of Redmine are currently accepting any bounties or payments for developing features.</p>
<p>In general, this is quite a complicated topic for which a lot of text has been written already, covering various opinions across various projects. Some reasons however, why many people do not accept payments for open-source contributions (either within Redmine or in other projects) are:</p>
<ul>
<li>Taxes are complicated. As any form of meaningful payment quickly involves taxes, this can quickly spiral into being a full-time accounting job (esp. when involving international payments), besides the hobby of working on Redmine's code and the main bread-winning job of people.</li>
<li>Working on Redmine is a hobby for most developers. Payments (and the associated expectations and pressure) can quickly suck all of the fun out of it, making it just another (badly paid) job.</li>
<li>Each feature accepted into Redmine comes with the responsibility of having to maintain it indefinitely. This is often <strong>a lot</strong> more effort that just developing the feature in the first place. That's one of the main reasons why some features linger without being merged: they are complex, affect "inner" areas of Redmine, might have some side-effects or edge-cases which might cause issues for some users and result in a high maintenance effort, or a just too special or niche. Often, a usable workaround in this case can be to maintain a plugin instead.</li>
<li>Accepting payments for certain features creates the (rightful) expectation of the people paying money for it that their pet-feature is actually finished, works, is maintained, and is well-integrated. This can quickly cause a conflict-of-interest where you have to decide between merging an (unfinished) feature to please your "customers" or holding back because the feature may be ill-advised, doesn't solve the actual problem, or results in additional problems on its own. This is a huge issue that many people try to strictly avoid, specifically by not accepting any money. This allows us to justifiable point to <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html#section11" class="external">Section 11 of the GPL</a> without accepting any undue responsibilities or expectations on our part for the time we happily provide for the benefit of the community in our spare time.</li>
</ul>
<p>As such, while it is true that the Redmine project might appear to be slow or unresponsive at times, I don't think this is something which can be solved by throwing money at the problem. Instead, things are likely only to improve if people provide meaningful contributions on their own. Yes, I know that it can be very frustrating when things move slow or people appear unresponsive (I really do and have the "war stories" to back this up), but many of the people working on Redmine are already spread thin and are doing the best they can within their own constraints to improve Redmine. Redmine is not so different from other open-source projects in this regard after all, especially those projects which are actually supported by a community of people rather than some corporation which just uses their software as a sales tool for support contracts or shiny upsells.</p>
<p>With that being said, for the specific issue you have linked to here: this is one of the areas which would cause a lot of follow-up edge-cases to be resolved, e.g:</p>
<ul>
<li>to make preceded/follow relations time aware</li>
<li>to make the reporting time aware</li>
<li>add times to other areas (such as versions)</li>
<li>adjust the Gantt chart to meaningfully display inter-day time-frames on tasks and versions</li>
<li>how to handle moving issues between projects</li>
<li>investigate how this changes the project work within Redmine and apply the necessary changes to support this</li>
<li>investigate how this affects the software interfaces and possibly breaking plugins</li>
<li>...</li>
</ul>
<p>As such, this is a prime example of a feature which looks simple and might even have a (rather) simple patch to implement a first working change. But there is a lot of follow-up work to be done here which would require a huge amount of work from the maintainers and would likely frustrate many users because of "unfinished" features.</p>
<p>And with that being said, I personally believe that this feature doesn't even add much value anyway. While some people believe they want to plan their tasks to the very minute, I think this is an anti-pattern and does not improve the project planing or ability to resolve tasks. Instead, it just adds another time-sink for micro-managing and running-behind-reality which doesn't improve real-world projects. Instead, it's generally a much better idea to have a list of tasks planned for the day (or even just upcoming days) and work on those. The specific time to solve those often doesn't matter or can't even be accurately planned.</p>
<p>In <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Extend Start/Due date to include time (New)" href="https://www.redmine.org/issues/5458">#5458</a>, the original motivation was to validate service-level agreements which do often require a response within certain time frames. However, I believe this could be solved differently, e.g. by adding some rules to alert if an issue is not closed or resolved within a certain timeframe, or if there was a reply of some sort. With SLAs, an important aspect would be the reporting (i.e. which of the specific SLA rules were met, and which were not), as well as features for alerting and escalation, both of which is not attempted by the patches in <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Extend Start/Due date to include time (New)" href="https://www.redmine.org/issues/5458">#5458</a> at all.</p>
<p>Thus, I believe <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Extend Start/Due date to include time (New)" href="https://www.redmine.org/issues/5458">#5458</a> solves the wrong problem in a way which adds a lot of complexity to Redmine and project managers without providing meaningful benefits to warrant this complexity. The idea to provide some support to handle SLAs in Redmine should be solved differently in my opinion.</p> Development: Port Issue's History tab to Products/Orders pluginhttps://www.redmine.org/boards/4/topics/672652022-05-25T08:07:45ZIgor Magdaliński
<p>I'm beginning to editing Redmine Plugins.<br />I'm trying to add history tab like in issues to redmine_products's Orders but can't figure it out.<br />Any tips how to do it correctly?</p> Development: bounties, crowdfunding: how to fund things in Redmine?https://www.redmine.org/boards/4/topics/672362022-05-14T20:32:59ZDaniel Pocock
<p>Do Redmine developers currently accept payment through any bounty or crowdfunding platform?</p>
<p>There are a few features in the bug tracker that have wide appeal, for example, adding hours/minutes/seconds to the date fields:<br /><a class="external" href="https://www.redmine.org/issues/5458">https://www.redmine.org/issues/5458</a></p>
<p>I personally developed one of the hacks for iCalendar support but I would also contribute funds to have an official implementation</p> Development: Show and log query about issueshttps://www.redmine.org/boards/4/topics/672192022-05-09T13:31:16Zpaolo battistella
<p>Dear all,</p>
<p>I have a simple query about issues that doesn't work for some users.<br />I need to show the SQL query that blocks the page.<br />How can I use <code>logger.info</code> to log the query?</p>
<p>Thank you,<br />Paolo</p> Development: Vulnerability available in your API.https://www.redmine.org/boards/4/topics/669882022-02-23T07:36:02ZSakti Das
<p>This one contains Vulnerability</p>
<p>dependencies {<br />compile 'com.taskadapter:redmine-java-api:<current-version>'<br />}</p>
<p>Please tell that what can we use for java.</p> Development: Integration with Redminehttps://www.redmine.org/boards/4/topics/666852022-01-17T14:51:00ZMax Klymenko
<p>Hi! My name's Max and I represent SPD Group. We are leading IT company and we will be happy to help anyone with integrations and other task laced with development and Redmine! Just text me to discuss all details!<br />~<br />Max,<br />[[<a class="external" href="https://spd.group">https://spd.group</a>]]</p> Development: RE: Final decision on age-old issueshttps://www.redmine.org/boards/4/topics/66578?r=66580#message-665802022-01-07T10:33:44ZLorenzo Meneghetti
<p>I agree.<br />Lorenzo</p> Development: Final decision on age-old issueshttps://www.redmine.org/boards/4/topics/665782022-01-07T08:37:44ZC S
<p>There are a number of open tickets that were created for version 1 about 10 years ago and have not been dealt with / updated for years.<br />Wouldn't it be time to make a final decision on these and either prioritize them or close them for good? Version 1 no longer has that much in common with the planned version 5 and some things have been solved differently in the meantime</p> Development: RedmineReceivingEmails - Add support for project (numeric ID)https://www.redmine.org/boards/4/topics/663812021-12-01T07:59:44ZJean Valjean
<p>For the following reasons, it would be very appreciated to add support for the project (<strong>numeric ID</strong>), right now it is only supported the "project-name".</p>
<ul>
<li>It's more simple and easy.</li>
<li>It's only a number.</li>
<li>You can access a project using "project-name" and numeric ID.
<ul>
<li>Example:
<ul>
<li><strong>Numeric ID</strong>: <a class="external" href="https://yourprettyproject.com/projects/123/issues.json">https://yourprettyproject.com/projects/123/issues.json</a></li>
<li><strong>Project Name</strong>: <a class="external" href="https://yourprettyproject.com/projects/prettyproject/issues.json">https://yourprettyproject.com/projects/prettyproject/issues.json</a></li>
</ul>
</li>
</ul>
</li>
<li>If you only has the project (numeric ID), you can get the <strong>json</strong> from project but this one doesn't contain the real "project-name" (you need conversion).
<ul>
<li>Example (json info):
<ul>
<li><pre>name: "Pretty project - TikTok" → pretty-project-tiktok</pre></li>
</ul></li>
</ul></li>
</ul>
More info:
<ul>
<li><a class="external" href="https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails">https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails</a></li>
<li>project=PROJECT identifier of the target project</li>
</ul> Development: I urgently need an application that would work in-househttps://www.redmine.org/boards/4/topics/663782021-11-29T20:31:33ZMary Mary
<p>I urgently need an application that would work in-house. I can’t wait long, advise what to do?</p> Development: RE: How to make issue filter select box to keep the last valuehttps://www.redmine.org/boards/4/topics/57827?r=66345#message-663452021-11-24T22:36:44ZAnonymous
<p>you need an array composed only of strings.</p>
<p>So with this command</p>
<blockquote>
<p><code>Object.pluck(:name,:id)</code></p>
</blockquote>
<p>you get this table for example</p>
<blockquote>
<p><code>[["name1",1],["name3",2],["name3",3]]</code></p>
</blockquote>
<p>which is incorrect since you must have</p>
<blockquote>
<p><code>[["name1","1"],["name3","2"],["name3","3"]]</code></p>
</blockquote>
<p>Use this transformation instead</p>
<blockquote>
<p><code>values ||= []<br />SlaLevel.pluck(:name,:id).map { |name,id|<br />values << [name.to_s,id.to_s]<br />}</code></p>
</blockquote> Development: RE: Inquiry to Ruby experts - Rails guidancehttps://www.redmine.org/boards/4/topics/66237?r=66242#message-662422021-10-28T23:35:33ZMayama Takeshimayamatakeshi@gmail.com
<p>Hi,<br />you could start reading:<br /> <a class="external" href="https://www.redmine.org/projects/redmine/wiki/plugin_tutorial">https://www.redmine.org/projects/redmine/wiki/plugin_tutorial</a><br />Then read the code of some simple plugins.<br />I am not a working ruby/rails developer either but I was able to do it this way when writing my plugin.</p> Development: Inquiry to Ruby experts - Rails guidancehttps://www.redmine.org/boards/4/topics/662372021-10-27T19:01:29ZFederico Vergelli
<p><strong>Hello.</strong></p>
<p>I would like to make an inquiry. I'm working with Redmine for almost 2 years ago, I've made some scripts with python making use of Redmine's API and other solutions.<br />The thing is, I've come to a time in which I can no longer escape the need of learning Rails. I need to modify a plugin for Redmine in a particular way, so I think is time.<br /> I'm sorry in advance, if this is offtopic.</p>
<p>What do you guys think is the best course/tutorial to start working with Redmine, besides any Rails course. Is there any youtube video that explains how to create Redmine's plugins from scratch? I know I'm asking for too much but any help would be very appreciated.</p>
<p><em>Regards</em></p> Development: RE: Need clarification on how to update or post data to redminehttps://www.redmine.org/boards/4/topics/66223?r=66234#message-662342021-10-27T14:51:07ZLorenzo Meneghetti
<p>Thirumala Chary wrote:</p>
<blockquote>
<p>Hi Team,</p>
<p>We are trying to update and post the data to Redmine. We are getting 401(Authorization Required) error.</p>
</blockquote>
<p>you are non able to login into redmine, check the documentation</p>
<blockquote>
<p>We are using below type of code with to update and post data.</p>
</blockquote>
<p>try first getting resource from browser, then with curl or postman to understand user accounting and authorization is correct</p>
<blockquote>
<p>String authInfo = AuthProvider.BasicAuthProvider.UserName + ":" + AuthProvider.BasicAuthProvider.Password;<br />authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));<br />httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authInfo);</p>
</blockquote>
<p>never seen before need to encode in Base64...<br />prefer to use http header X-Redmine-API-Key as explained <a href="https://www.redmine.org/projects/redmine/wiki/Rest_api#Authentication" class="external">here</a></p>
<blockquote>
<p>var jsonContent = jsoninput;<br />var httpContent = new StringContent(jsonContent);<br />response = await client.PutAsync("http://ramsytesting.m.redmine.org/issues/40.json", httpContent).ConfigureAwait(false);</p>
</blockquote>
<p>..but where do you tell to API request to use GET or other http methods?</p>
<p>Lorenzo</p> Development: New PHP Clienthttps://www.redmine.org/boards/4/topics/662302021-10-26T21:52:03ZDiego Rin Martín
<p>Hi there,</p>
<p>just to make you know that we are developing a new Redmine API client using php, and<br />we are open to collaborations, the development is in an early alpha stage and surely it <br />will have a bunch of bugs and malfunctions, but we think it will be a good piece of code.</p>
<p>the repo is here:</p>
<p><a class="external" href="https://github.com/diego-ninja/blackmine">https://github.com/diego-ninja/blackmine</a></p>
<p>and as I already say, all help is appreciated.</p>
<p>Thanks in advance, Diego.</p> Development: RE: Need clarification on how to update or post data to redminehttps://www.redmine.org/boards/4/topics/66223?r=66227#message-662272021-10-26T12:47:29ZThirumala Chary
<p>hi Team,<br />Could you please update on this.</p> Development: Need clarification on how to update or post data to redminehttps://www.redmine.org/boards/4/topics/662232021-10-25T10:20:04ZThirumala Chary
<p>Hi Team,</p>
<p>We are trying to update and post the data to Redmine. We are getting 401(Authorization Required) error.<br />Please find below credentials which we are using.<br />UserName="ramsytesting",Password="ramsytesting"</p>
<p>We are using below type of code with to update and post data.</p>
<p>var httpClient = new HttpClient();<br /> var username = "<API Username>";<br />var response = new HttpResponseMessage();<br /> var password = "<API Password>";<br /> var postData = "Data which we want to post to Redmine" </p>
<pre><code>String authInfo = AuthProvider.BasicAuthProvider.UserName + ":" + AuthProvider.BasicAuthProvider.Password;<br /> authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));<br /> httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authInfo);</code></pre>
<pre><code>var jsonContent = jsoninput;<br /> var httpContent = new StringContent(jsonContent);<br />response = await client.PutAsync("http://ramsytesting.m.redmine.org/issues/40.json", httpContent).ConfigureAwait(false);</code></pre>
<p>Kindly help us in this.</p> Development: RE: Not able to generate API Keyhttps://www.redmine.org/boards/4/topics/66167?r=66169#message-661692021-10-07T21:55:39ZMayama Takeshimayamatakeshi@gmail.com
<p>Hi,<br />I think the doc should have said:<br /> <strong>Enable REST web service</strong> in Administration -> Settings -> API.<br />You would get there by accessing:<br /> <a class="external" href="http://YOUR_SERVER_ADDRESS/redmine/settings?tab=api">http://YOUR_SERVER_ADDRESS/redmine/settings?tab=api</a><br />or maybe (depending on your configuration):<br /> <a class="external" href="http://YOUR_SERVER_ADDRESS/settings?tab=api">http://YOUR_SERVER_ADDRESS/settings?tab=api</a></p> Development: Not able to generate API Keyhttps://www.redmine.org/boards/4/topics/661672021-10-07T13:05:47Zaman bommena
<p>Hello,<br />I am from Zluri We want to create an integration using your APIs but are not able to generate API Key.</p>
<p>In documentation following this is mentioned<br />To enable the API-style authentication, you have to check Enable REST API in Administration -> Settings -> API.</p>
<p>But we are not able to find any such thing.</p> Development: REST API Error in Xamarin Forms .NEThttps://www.redmine.org/boards/4/topics/661552021-10-04T13:56:56ZВладимир Косякин
<p>When connecting to the RedMine Api, the android application gives an error "System.Net.WebException: 'An exception occurred during a WebClient request.'". Although the same code in the console c# application works. The mobile application worked stably until 2021.10.01, there were no errors. Nothing in the code has changed. Maybe someone has the same problem?</p> Development: Could not add number of working days as delayhttps://www.redmine.org/boards/4/topics/661202021-09-24T12:38:55Zsuat kayabaşı
<p>I tried to add 2 days delay to the TaskB which follows taskA. TaskA due date is 2018-08-03 (Friday) (YYYY-MM-DD). After adding the delay TaskB start date is 2018-08-06 (Monday). I expect 2018-08-08 (Wednesday). I think it added the number of days as delay not the number of working days. Is there any other way to add number of working days as delay?</p> Development: API Rest - Image attachments broken https://www.redmine.org/boards/4/topics/660902021-09-16T14:19:31ZFederico Vergelli
<p>Hello folks, this is the issue I'm having right now:</p>
<p><strong>Summary</strong>: Whenever I try to upload an image file (whether is png or jpg) through the Rest service, it shows itself broken. It happens only with the images, the rest uploads just fine.</p>
<p><strong>Environment:</strong> <br />- Redmine 4.2.1 on Docker container<br />- Requests made by Python's library (request) [Python: 3.9]</p>
<p><strong>Behaviour:</strong> <br />I've made a couple of functions to manage a massive file upload to the server. I make these requests from a Python Notebook. These functions upload an attachment to an existing issue, so that's why I make use of the PUT method, as Redmine docs say it's supported. When I go to the UI the image is shown broken, and the browser console shows <em>Failed to load resource: the server responded with a status of 404 (Not Found)</em> for each image file there was attached to this issue.</p>
<p><strong>Steps to reproduce:</strong></p>
<p>My requests look something like this:</p>
<pre>
.
.
.
# Opening the file
file_n = {'file': open( 'files\{}'.format( file),'rb')}
# The API call to upload the file
response = requests.post( url_objective + '/uploads.json?filename={}'.format( file),
files=file_n, headers={"Content-Type":"application/octet-stream"},
verify=False, auth=( conections_objetivo["user"], conections_objetivo["password"]))
# Very self explanatory
if str( response) == "<Response [201]>":
# Variabilizing the token
token = response.json()["upload"]["token"]
# the body of the PUT method
body = {
"issue": {
"uploads": [
{"token":"{}".format( token), "filename":"{}".format( file), "content_type":"{}".format( content_type_formater( file))}
]
}
}
# The PUT method
response = requests.put( url_objetivo + '/issues/{}.json'.format( issue_id_finder( issue)), json=body, headers={"Content-Type":"application/json"},
verify=False, auth=( conections_objetivo["user"], conections_objetivo["password"]))
</pre>
<p>Where:</p>
<ul>
<li><em>file</em> is the file in string type</li>
<li><em>content_type_formater( file)</em> is a well-defined function that simply returns<br /> "png": "image/png",<br /> "jpg": "image/jpeg",<br /> "txt": "text/plain" <br />depending the case.</li>
</ul>
<p>Any advice?</p> Development: RE: Article about Redminehttps://www.redmine.org/boards/4/topics/61620?r=66079#message-660792021-09-14T15:12:13ZJames Brownjames@ssa-office.com
<p>Write to me, led a similar development, maybe we will find something in common</p> Development: C# API getting all fields in an organization?https://www.redmine.org/boards/4/topics/654502021-05-20T21:10:16ZScott Starks
<p>I've goggled and still not exactly sure if I can do an API call to get all fields in an organization within Redmine. Let me know and if you can point me to an example that would be great! Thanks, Scott</p> Development: RE: Time tracking - home office checkboxhttps://www.redmine.org/boards/4/topics/65317?r=65319#message-653192021-04-30T07:33:27ZSimon Vogl
<p>Perfect, I guess this will do the trick!<br />Thanks <br />Simon</p> Development: RE: Time tracking - home office checkboxhttps://www.redmine.org/boards/4/topics/65317?r=65318#message-653182021-04-30T07:32:08ZFelix Schäfer
<p>Wouldn't a time entry custom field do the trick?</p> Development: Time tracking - home office checkboxhttps://www.redmine.org/boards/4/topics/653172021-04-30T07:12:28ZSimon Vogl
<p>Dear all,<br />as the situation evolves, many of my colleagues are working in home office. For tax reasons, it is important to know for us which hours/days have been spent at home vs. in office.</p>
<p>I have tried to find a plugin that extends the time tracking dialog with a simple checkbox for this (plus a column to print this in time overviews), but could not find a plugin for this.</p>
<p>If anyone implemented this or a similar approach I'd be happy to try stuff under Redmine 4.1*<br />Simon</p> Development: RE: Safely manipulate SQL database directly (bypassing redmine API) ?https://www.redmine.org/boards/4/topics/65243?r=65250#message-652502021-04-26T11:20:28ZMarc Cramer
<p>What a pitty. So I stick to:</p>
<p>- Read-only SQL access<br />- Write through Redmine's API</p>
<p>Thanks a lot for that detailed answer. That helps preventing from any direct<br />write access via SQL definitly. ;-)</p> Development: RE: Safely manipulate SQL database directly (bypassing redmine API) ?https://www.redmine.org/boards/4/topics/65243?r=65244#message-652442021-04-26T05:28:37ZFelix Schäfer
<p>Unfortunately all the validation and wellformedness checks for the data happen in Redmine/Rails, there's not even foreign key constraints in the schema. Long story short, you won't have any guarantee that Redmine can handle the data you yourself change in the DB.</p>
<p>Regarding any concurrency problems, as long as you wrap your updates in transactions Redmine should be fine.</p>
<p>Please note that going through the DB to change the <code>due_date</code> for example will also not generate the issue history entries showing the change. This will cause the data shown to be inconsistent, say the issue being created with a <code>due_date</code> of May 1st, a history entry changing this to May 2nd, and if you change that to May 3rd in the DB directly the last change in the history will show "<code>due_date</code> changed to May 2nd" but the issue will show May 3rd.</p>
<p>Long story short, I would strongly advise against changing anything in the DB directly, as you won't have any check permission- or data-wise that Redmine performs, and might end up with data which your current or any future version of Redmine might break on.</p> Development: Safely manipulate SQL database directly (bypassing redmine API) ?https://www.redmine.org/boards/4/topics/652432021-04-25T20:01:02ZMarc Cramer
<p>Hi,</p>
<p>is there a safe way to access the underlaying SQL database and change the<br />database directly, thus bypassing redmine's API?</p>
<p>Why: I am kind of doing various mass data manipulation over redmine's API, but<br />wrapping each action into a http/json request is slow and a bit tedious to<br />program. For example: I'd change the due_date of various issues having the<br />same parent issue_id. Over SQL, this should be a single UPDATE query.</p>
<p>But I am not sure whether this may lead to undefinded behaviour, e.g. when it<br />is happening in parallel to redmine and not, say, serialized by database<br />transactions.</p>
<p>I am using redmine 4.1.2 + postgresql.</p>
<p>Thanks for any hints or notes.</p> Development: Automatic expansion for the "Files" part in a wiki pagehttps://www.redmine.org/boards/4/topics/623162021-03-17T07:45:36ZJean-Michel Bain
<p>As I prefer having "Files" expanded when I open a wiki page, I have added some extra code :<br /><pre>./public/javascripts/application.js</pre></p>
<pre>function setupAttachmentDetail() {
setFilecontentContainerHeight();
$(window).resize(setFilecontentContainerHeight);
// add these two lines
var fieldset = $('.icon-collapsed')[0];
toggleFieldset(fieldset);
}</pre>
<p>I did not find that feature in the Redmine configuration.<br />Published for your help if you like it...</p> Development: RE: plugin update db (add_column)https://www.redmine.org/boards/4/topics/62116?r=62146#message-621462021-02-19T05:09:05ZBernhard Rohloff
<p>Hi,</p>
<p>there's a <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial">Plugin_Tutorial</a> in the wiki which should cover all your problems.</p>
<p>Greetings,</p>
<p>Bernhard</p> Development: plugin update db (add_column)https://www.redmine.org/boards/4/topics/621162021-02-14T18:58:26ZJD JD
<p>Hi,</p>
<p>I am new in development redmine plugin.</p>
<p>I want to update db, for exmple I want to add_column to model.</p>
<p>I don't find any command to add colum, I try to write file in /db folder and exec this command "bundle exec rake redmine:plugins:migrate" but there are no effect.</p>
<p>my question:</p>
<p>how I can add_column in plugin redmine in existing model.</p>
<p>thanks</p> Development: Rolling Cherry Integration with Redminehttps://www.redmine.org/boards/4/topics/619932021-01-28T08:22:54ZRolling Cherry
<p>Hi,</p>
<p>My name is Hasnain from Rolling Cherry. Our team of expert website developers had framework. An integration with the Redmine team. Our website designs are very unique because we have team of experienced and professionals.</p>
<p>Thanks<br />Hasnain Rajani<br />Visit - [[<a class="external" href="https://www.rollingcherry.com">https://www.rollingcherry.com</a>]]</p> Development: Using RedMine for outsourcing IT Consultinghttps://www.redmine.org/boards/4/topics/619882021-01-25T15:45:38ZAnastasia Stefanyuk
<p>Hello!</p>
<p>My name is Anastasia Stefanyuk and I'm working in IT outsourcing development company - Mobilunity.</p>
<p>Mobilunity is a family of highly skilled and dedicated developers and designers who have managed to launch numerous successful projects. Every our client, either an international corporation or a small company, is important for us. Our focus is to built long term relationships, which is possible only if there are mutual understanding and effective working atmosphere.</p>
<p>Our development team has implemented an integration with Redmine. The main feature of this integration is synchronization of Redmine issues and EasyyQA Agile Board.</p>
<p>Best regards,<br />Anastasia Stefanyuk<br />Content manager, Mobilunity<br /><a class="external" href="https://mobilunity.com/blog/hire-it-business-consultant/">https://mobilunity.com/blog/hire-it-business-consultant/</a></p> Development: What is the intented way for custom operators and custom operators_by_filter_typehttps://www.redmine.org/boards/4/topics/619012021-01-13T12:30:57ZAngelinsky7 Angelinsky7
<p>Hello,<br />i would like to know what is the correct way of adding a custom operator and operator filter to a field in redmine.<br />i understand that you can add operator this way :</p>
<pre>
def initialize_available_filters_with_myplugin
if operators["sbl"].blank?
operators["sbl"]=:op_before_last
operators["sl"]=:op_last
operators_by_filter_type[:list_my_plugin_optional] = operators_by_filter_type[:list_optional] + ["sbl","sl"]
end
add_available_filter 'my_field_plugin_id', :type => :list_my_plugin_optional, :values => my_other_fields.sort.collect{|s| [s.name, s.id.to_s]}
end
alias_method :initialize_available_filters_without_myplugin, :initialize_available_filters
alias_method :initialize_available_filters, :initialize_available_filters_with_myplugin
</pre>
<p>and extending the sql_for_field like this<br /><pre>
def sql_for_field_with_myplugin(field, operator, value, db_table, db_field, is_custom_filter=false)
logger.error "before: #{field}, #{operator}, #{value}, #{db_table}, #{db_field}, #{is_custom_filter}"
sql=case operator
when "sbl"
# generate sql here
when "sl"
# generate sql here
else
sql_for_field_without_scrum(field, operator, value, db_table, db_field, is_custom_filter)
end
sql
end
alias_method :sql_for_field_without_myplugin, :sql_for_field
alias_method :sql_for_field, :sql_for_field_with_myplugin
</pre></p>
<p>and everything is working fine IF is don't create a new operators_by_filter_type (like here) but extends an existing one (like 'list_optional')<br />because of those line in application.js (in buildFilterRow <code> line 156 and toggleOperator </code> line 266)</p>
<pre>
switch (filterOptions['type']) {
case "list":
case "list_optional":
case "list_status":
case "list_subprojects":
... follow a long list of type without any way to extend it
.
.
.
switch (operator.val()) {
case "!*":
case "*":
case "t":
case "ld":
case "w":
case "lw":
case "l2w":
case "m":
case "lm":
case "y":
case "o":
case "c":
case "*o":
case "!o":
enableValues(field, []);
... follow a long list of operator without any way to extend it
</pre>
<p>my new type of filter obviously don't exist and my new type of filter neither.<br />How could i add them to the list and how could i make my new filter and filter operator work correctly (without patching by hand the application.js file)</p>
<p>Thanks to anyone that could help me !!!<br />Angle</p> Development: RE: REST API - Get all Issues for a project versionhttps://www.redmine.org/boards/4/topics/47695?r=61789#message-617892020-12-24T03:29:21ZAndrew Mo
<p>This is an old question, but I have the same issue so...</p>
<p>Did you ever find a solution to #1, or does anyone else have a solution? The only way I see to do it is to GET the complete list of versions for a project and then map the name to the ID, which seems unnecessarily convoluted.</p>
<p>Wrt #2, the <a href="https://www.redmine.org/projects/redmine/wiki/Rest_Issues" class="external">REST API Doc</a> indicates you can provide a comma-separated list of Issues</p>
<p>Thanks in advance for any suggestions</p> Development: Integrating Camunda BPMN with Ticket https://www.redmine.org/boards/4/topics/617402020-12-13T18:37:41ZGeorge Chester
<p>I would like to integrate BPMN into our Redmine Install so each ticket can be assigned a process that is followed.</p>
<p>I'm looking for the best option to do a webhook from Redmine to pass data on to the Process?</p>
<p>What would be the best option?</p>
<p>I've looked and I think the Webhooks Plugins have all stopped be actively supported so I'm wondering if a custom Plugin would be hard.</p>
<p>Any ideas would be greatly apprecisated.</p> Development: Article about Redminehttps://www.redmine.org/boards/4/topics/616202020-11-26T11:22:26ZRoman Chuprina
<p>Hello!</p>
<p>My name is Roman and I'm a tech writer at SPD Group. We help our partners with product development services for 13+ years. I write technical articles, and I'm interested in writing an overview article about Redmine. What sources for information would you recommend? Are there any complete guides on this topic already?</p>
<p>Best regards,<br />Roman<br />Tech Writer, SPD Group<br /><a class="external" href="https://spd.group/">https://spd.group/</a></p> Development: Patch IssueQuery to add new QueryColumn on user rightshttps://www.redmine.org/boards/4/topics/616112020-11-25T09:55:23ZQuentin Champeau
<p>I want to add a new column to the issue table. It's working fine BUT I now want to add that column only if the user has specifics rights (let's say for now, only check if the user is admin). But, the user is always anonymous therefore not admin even if I am logged. I tried many different ways to path `issue` and `issue_query`.</p>
<p><strong>init.rb</strong><br /><pre>
require 'redmine'
Issue.send(:include, IssuePatch)
IssueQuery.send(:include, IssueQueryPatch)
Redmine::Plugin.register :test do
blablabla
end
</pre></p>
<p><strong>issue_patch.rb</strong><br /><pre>
require_dependency 'issue'
module IssuePatch
def self.included(base)
base.class_eval do
def test
return 1
end
end
end
end
</pre></p>
<p><strong>issue_query_patch.rb</strong><br /><pre>
require_dependency "issue_query"
module IssueQueryPatch
def self.included(base)
base.class_eval do
# TODO
if User.current.admin? # How to access current user status ??
self.available_columns << QueryColumn.new(:test,
:caption => :Test)
end
end
end
end
</pre></p>
<p>Another way, is like this <a class="external" href="https://stackoverflow.com/questions/64896217/redmine-add-new-querycolumn-on-condition">https://stackoverflow.com/questions/64896217/redmine-add-new-querycolumn-on-condition</a> (this is my question).</p>
<p>If you see in the Redmine code, the IssueQuery uses the user current status, but I can't figure out how I can do so myself.</p>
<p>(<a class="external" href="https://www.redmine.org/boards/3/topics/35615">https://www.redmine.org/boards/3/topics/35615</a> is very interesting but can't be reproduce because `before_filter` doesn't exist anymore)</p>
<p><strong>Answer</strong><br />I found a way to do that by forcing the model to hook after by using <em>before_validation</em></p>
<p>Like :<br /><strong>issue_query_patch.rb</strong><br /><pre>
require_dependency "issue_query"
module IssueQueryPatch
def self.included(base)
base.class_eval do
before_validation :display_test
def display_test
# view_test is a permission in init.rb
if User.current.admin? || User.current.allowed_to?(:view_test, nil, :global => true)
self.available_columns << QueryColumn.new(:test,
:caption => :Test)
end
end
end
end
end
</pre></p> Development: How to obtain the geometry of an image attachmenthttps://www.redmine.org/boards/4/topics/600482020-10-09T09:29:46ZFive Above Infinity
<p>Is there a way to obtain the geometry parameters, that is height and width, of an attachment, in case this attachment is an image file?</p>
<p>For example something like this:</p>
<code>
<pre>
attachment.latest_attach(obj.attachments, "test.png");
width = attachment.something...
height = attachment.something...
</pre><br /></code>
<p>I have looked into attachment.rb (<a class="external" href="https://github.com/redmine/redmine/blob/master/app/models/attachment.rb">https://github.com/redmine/redmine/blob/master/app/models/attachment.rb</a>)<br />but have not yet discovered the right track to keep going.</p>
<p>Maybe someone has a hint for me.</p>
<p>The background is, I am working on a Plugin/Macro which displays the attached image with some added extra annotations and I need to determine the aspect ratio of the image attachment before generating the output.</p> Development: How to get the User.ID After creating it programmatically for SSO integration on LDAPhttps://www.redmine.org/boards/4/topics/599802020-09-27T00:20:49ZSeth DeSantis
<p>I am trying to setup SSO, and can create user's easily, but I have no way of obtaining the ID.</p>
<ol>
<li>Generates a new autologin token and returns its value<br /> def generate_autologin_token<br /> token = Token.create!(:user_id => id, :action => 'autologin')<br /> token.value<br /> return token.to_s<br /> end<br />:<br />results in:<br />Mysql2::Error: Column 'user_id' cannot be null: INSERT INTO `tokens` (`user_id`, `action`, `value`, `created_on`, `updated_on`) VALUES (NULL, 'autologin', '55c6b96a13a5de291234ea447c2ecfbe4a63b388', '2020-09-27 00:18:13', '2020-09-27 00:18:13')</li>
</ol>
<p>Which is valid as there is no user_ID as it states NULL.</p>
<p>Any help appreciated, thank you.</p> Development: How to build class documentation?https://www.redmine.org/boards/4/topics/599242020-09-16T16:16:15Zdecibel 83
<p>Hi,</p>
<p>I'm trying to build class documentation for Redmine 4.1.1 but running <code>rake doc</code> as per <a class="external" href="https://www.redmine.org/projects/redmine/wiki/Contribute#Code-documentation">https://www.redmine.org/projects/redmine/wiki/Contribute#Code-documentation</a> produces nothing in the <code>doc</code> folder.</p>
<p>I also tried to execute <code>rake yard</code> but I receive:</p>
<pre>
redmine@dev2:~/redmine$ rake yard
rake aborted!
Don't know how to build task 'yard' (see --tasks)
(See full trace by running task with --trace)
</pre>
<p>I also tried to run <code>export RAILS_ENV=development</code> before running <code>rake yard</code> but I got the same.</p>
<p>Could you help me to understand where I'm wrong, please?</p>
<p>Thank you very much!</p> Development: RE: What can be good alternative to Jira/Redmine?https://www.redmine.org/boards/4/topics/56472?r=59664#message-596642020-07-21T13:19:02ZMadhu Singh
<p>Hello,</p>
<p>As I am Software Tester in <a class="external" href="https://askmeoffers.com/">https://askmeoffers.com/</a> i can say that jira is best but we can also use SpiraTeam i.e an integrated application lifecycle management system which manages the specifications, updates, test cases, problems and tasks of all projects in one cohesive setting. This is agnostic approach-endorsing methodologies such as Agile, Kanban, Scrum, XP, cascade and combination.</p>
<p>Thanks,</p> Development: RE: api and file type rsbhttps://www.redmine.org/boards/4/topics/31907?r=59642#message-596422020-07-15T16:06:36ZChams Akrout
<p>Hi,<br />I understand that this is a really old thread but I'd like to know more about this files and how to use them because I couldn't understand the code written in them.</p> Development: RE: Where did people on redmine migrate to ?https://www.redmine.org/boards/4/topics/59476?r=59504#message-595042020-06-18T01:11:18ZMischa The Evil
<p>Thanks Guillermo for pointing this out. I hadn't noticed it was a spam post.<br />I have reported the current stream to the team.</p> Development: RE: Where did people on redmine migrate to ?https://www.redmine.org/boards/4/topics/59476?r=59483#message-594832020-06-15T09:54:27ZGuillermo ML
<p>Mischa The Evil wrote:</p>
<blockquote>
<p>First, this is the official project site. Second, out of curiosity, and if I may ask: on what (empirical) merit(s) do you base your reflected conclusion?</p>
</blockquote>
<p>See <a class="external" href="https://www.redmine.org/boards/1/topics/56192">https://www.redmine.org/boards/1/topics/56192</a><br />I think it's a spammer who is scrapping other questions and posting them as their own. Spam is a curse in redmine.org</p> Development: RE: Where did people on redmine migrate to ?https://www.redmine.org/boards/4/topics/59476?r=59480#message-594802020-06-15T03:14:25ZMischa The Evil
<p>gome skiran wrote:</p>
<blockquote>
<p>[...] due to lack of open plugin support for redmine ( such as kanban ) .</p>
</blockquote>
<p>Redmine provides support for plugins which are adding kanban features, through its open-source plugin API and the underlying Rails/Ruby API's. Examples of such plugins (both commercial and free) can be found in the plugin directory and on several code-sharing platforms such as GitHub.</p>
<blockquote>
<p>I noticed that the community here and other places including the official site appears to be dying / dead... [...]</p>
</blockquote>
<p>First, this is the official project site. Second, out of curiosity, and if I may ask: on what (empirical) merit(s) do you base your reflected conclusion?</p> Development: Where did people on redmine migrate to ?https://www.redmine.org/boards/4/topics/594762020-06-14T20:54:57Zgome skiran
<p>I've been looking into alternatives.. due to lack of open plugin support for redmine ( such as kanban ) .</p>
<p>I noticed that the community here and other places including the official site appears to be dying / dead... Where did people migrate to and what open source tools are comparable?</p> Development: RE: Wow it is low .. very very looooow ... https://www.redmine.org/boards/4/topics/58445?r=59446#message-594462020-06-10T16:54:56Zkumar abhinav
<p>See the last line in the logs you have pasted:<br /><pre>
INFO -- : Completed 200 OK in 111042ms (Views: 149.1ms | ActiveRecord: 3220.9ms)
</pre><br />It says ActiveRecord: 3220.9ms, which means the Sql queries are taking 3220.9ms to execute.</p>
<p>You should go through your logs and check the time taken by each of the individual queries to find the culprit.<br />Then you can go on fixing the slow queries.</p> Development: How to render base64 images in the issue_pdf_helper????https://www.redmine.org/boards/4/topics/593352020-05-21T23:20:09ZAli Hamdan
<p>I added a binary signature field in database which capture a signature from time_entries form and store it as base64 binary data.<br />Now im able to render it within the issue using image_tag but with no success in trying to render it on the pdf output so i would be so grateful if someone could give me an advise on how to do it...</p> Development: Receiving Outlook inline Emails - cid: to !file.name!https://www.redmine.org/boards/4/topics/592942020-05-12T19:45:46ZJustas Markauskas
<p>Wanna renew old discussion. <a href="https://www.redmine.org/boards/2/topics/52340" class="external">#52340</a></p>
<p>we are so close to finish this plugin. <br />Is there a way to use full url instead of name in "inline image"?<br />since redmine allows attachments with same name. But they have unique url.</p>
<p>i.e. instead of: <pre> !foo.jpg! </pre><br />use this: <pre>!https://redmine.org/attachments/download/54478/foo.jpg!</pre></p>
<p>at the moment bug is that: if you send new email to redmine, outlook gives same names to images. And you will get wrong images on old notes too. <br /><pre>
Because of a bug in my Redmine (2.5.5). Outlook tends to name all embedded screenshots image001.png. So if you write more than one mail to that issue you have duplicate image001.png.
The problem then is, that redmine replaces this image tags always with the last uploaded image001.png dynamically. So if you see the right image and somebody uploads another image001 then you see the wrong image.
</pre></p>
<p>Current patch code:<br /><pre><code class="ruby syntaxhl"><span class="c1">#encoding: utf-8</span>
<span class="n">require_dependency</span> <span class="s1">'mail_handler'</span>
<span class="k">module</span> <span class="nn">MailHandlerPatch</span>
<span class="k">def</span> <span class="nc">self</span><span class="o">.</span><span class="nf">included</span><span class="p">(</span><span class="n">base</span><span class="p">)</span>
<span class="n">base</span><span class="p">.</span><span class="nf">send</span><span class="p">(</span><span class="ss">:include</span><span class="p">,</span> <span class="no">InstanceMethods</span><span class="p">)</span>
<span class="n">base</span><span class="p">.</span><span class="nf">class_eval</span> <span class="k">do</span>
<span class="n">alias_method_chain</span> <span class="ss">:plain_text_body</span><span class="p">,</span> <span class="ss">:notes_cleanup</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="k">module</span> <span class="nn">InstanceMethods</span>
<span class="k">def</span> <span class="nf">plain_text_body_with_notes_cleanup</span>
<span class="n">body</span> <span class="o">=</span> <span class="n">plain_text_body_without_notes_cleanup</span>
<span class="n">body</span><span class="p">.</span><span class="nf">gsub!</span><span class="p">(</span><span class="sr">/\[cid:(\S+?)\@\S+?\]/</span><span class="p">,</span> <span class="s1">'!\1!'</span><span class="p">)</span>
<span class="n">body</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="no">MailHandler</span><span class="p">.</span><span class="nf">send</span><span class="p">(</span><span class="ss">:include</span><span class="p">,</span> <span class="no">MailHandlerPatch</span><span class="p">)</span>
</code></pre></p> Development: RE: GPL License for Plugins?https://www.redmine.org/boards/4/topics/27405?r=59163#message-591632020-04-19T18:45:59ZLiane Hampe
<a name="Further-Links"></a>
<h2 >Further Links<a href="#Further-Links" class="wiki-anchor">¶</a></h2>
<a name="GPL-and-Plugins"></a>
<h3 >GPL and Plugins<a href="#GPL-and-Plugins" class="wiki-anchor">¶</a></h3>
<p><a class="external" href="https://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins">https://www.gnu.org/licenses/gpl-faq.html#GPLAndPlugins</a></p>
<a name="GPL-License-Compatability"></a>
<h3 >GPL License Compatability<a href="#GPL-License-Compatability" class="wiki-anchor">¶</a></h3>
<p><a class="external" href="https://www.gnu.org/licenses/license-list.en.html">https://www.gnu.org/licenses/license-list.en.html</a></p> Development: RE: Vue.js as frontend?https://www.redmine.org/boards/4/topics/58731?r=59095#message-590952020-04-06T09:35:41ZChristian Schnabl
<p>For sure, the aim would not be to integrate a framework like vue.js into core (just thinking about the entrypoints) on the template and view level permanently.<br />So from a redmine perspective, there are two/three ways to integrate (if i get it right):</p>
<p>1. New feature as a plugin, where you add an additional feature<br />2. Using the rest api and the theme.js as a "hookup" only</p>
<p>I am currently getting along very well with using a custom theme that integrates bootstrap 4. vue.js logic would be best place in a plugin - see plugin by Akiko.</p>
<p>I think that the the extension/development of the redmine rest api might be very important not only for things like vue.js but for application connectivity in general.</p> Development: RE: Vue.js as frontend?https://www.redmine.org/boards/4/topics/58731?r=59077#message-590772020-04-04T02:50:12ZAkiko Takano
<p>Hi, Pinner</p>
<blockquote>
<p>if you have an existing application you can use Vue in just one part of your front-end that needs a more interactive experience</p>
</blockquote>
<p>I agree with this opinion.<br />In my plugin, I applied partially Vue.js to implement a more user-friendly interface. Of course, I also use the jQuery.</p>
<p>Redmine's API is not enough for my plugin.<br />But I don't like to customize Redmine's core code directly. This is because to keep easy to update Redmine.</p>
<p>So, I provided some simple additional endpoint to return JSON in my plugin.<br />Instead of this approach, I have to keep maintaining the plugin but I accepted it.</p>
<p>I think that using Vue.js or some of the latest frameworks on the front end of Redmine itself still needs discussion.<br />But I hope my tiny plugin will be helpful for future releases.</p> Development: How to add attachments under the tab of an existing plugin,which does not have this ...https://www.redmine.org/boards/4/topics/589992020-03-20T07:43:25Zwho who
<p>How should I modify this plugin<br />Can someone help me? thank you very much</p> Development: RE: Vue.js as frontend?https://www.redmine.org/boards/4/topics/58731?r=58955#message-589552020-03-10T09:12:57ZChristian Schnabl
<p>Thanks for the feedback and the links <a class="user active" href="https://www.redmine.org/users/5674">Akiko Takano</a> and <a class="user active" href="https://www.redmine.org/users/12917">Bernhard Ganslmeier</a> !</p>
<p>The plugin approach looks very interesting. I am currently working with vue on different projects which need some partial, component based integration.<br />I wonder if it would be an idea to use the rest api (i did not dive into your code yet) to extend some features, too. Not sure about that yet.</p>
<p>It might be worth working on the view to extend certain ui features with vue. As a start, i thought of adding vuejs components to the date and time form fields (e.g. on ticket and timetracking views).</p>
<p>Could be quite a usability boost there.</p>
<p>So another question would be if it makes sense (in a custom redmine instance) at all to go into core and add those features or if it should mainly be provided via plugins and the theme. Not sure about that.</p>
<p>Best,<br />Chris</p> Development: RE: AWS RDS SSL connection Error mysql2 in Redmine database ymlhttps://www.redmine.org/boards/4/topics/58943?r=58945#message-589452020-03-08T20:43:18ZMarius BĂLTEANU
<p><a class="external" href="https://aws.amazon.com/blogs/database/amazon-rds-customers-update-your-ssl-tls-certificates-by-february-5-2020/">https://aws.amazon.com/blogs/database/amazon-rds-customers-update-your-ssl-tls-certificates-by-february-5-2020/</a></p> Development: AWS RDS SSL connection Error mysql2 in Redmine database ymlhttps://www.redmine.org/boards/4/topics/589432020-03-08T11:09:23ZThilak g
<p>Hi,</p>
<p>I have hosted redmine on AWS it was working properly, Suddenly last two days its showing error <strong>We're sorry, but something went wrong. The issue has been logged for investigation. Please try again later.</strong></p>
<p>I have checked apache2 server log, it shows <br /><code>Error ID: 53a00391<br /> Error details saved to: /tmp/passenger-error-ISPn8Y.html<br /> Message from application: SSL connection error: error:00000001:lib(0):func(0):reason(1) (Mysql2::Error)</code></p>
<p>so i have updated AWS RDS Mysql SSL connection, RDS Mysql SSL connection working properly when i tried to connect through command</p>
<p>(Please see attached image)</p>
<p><strong>database.yml</strong></p>
<p><code>production:<br /> <<: *default<br /> database: database<br /> u;sername: user<br /> password: ******<br /> host: *****.c8pm9vrrqq0w.us-west-2.rds.amazonaws.com<br /> port: 3306<br /> sslverify: true<br /> sslmode: 'REQUIRED'<br /> sslca: /path/to/**.pem</code></p>
<p>Still i am getting same <strong>SSL connection Error</strong></p>
<p>Could any one please help me to resolve this error.</p>
<p>Thanks</p> Development: RE: Vue.js as frontend?https://www.redmine.org/boards/4/topics/58731?r=58884#message-588842020-02-27T04:38:28ZAkiko Takano
<p>Hi, Bernhard.<br />Thanks for the above reply.</p>
<p>As Bernhard mentioned, the latest version of my plugin is trying to apply Vue.js partially to create an issue template with custom fields setting. <br />Since Redmine does not use Vue.js's library but jQuery, I added the vue.min.js in my plugin's assets.</p>
<p>Please note, I'm not a skilled front-end engineer and my plugin's implementation is quite rough.<br />So that Vue / JavaScript code is not so complexed. Sorry I could not give you any good suggestions.....</p>
<p>Here is the place that using Vue and related JS. I hope this would be of any help.</p>
<ul>
<li><a class="external" href="https://github.com/akiko-pusu/redmine_issue_templates/blob/a351ae9b1b010e3640710f9dbae48246e0459802/app/views/issue_templates/_form.html.erb#L57-L128">https://github.com/akiko-pusu/redmine_issue_templates/blob/a351ae9b1b010e3640710f9dbae48246e0459802/app/views/issue_templates/_form.html.erb#L57-L128</a></li>
<li><a class="external" href="https://github.com/akiko-pusu/redmine_issue_templates/blob/master/assets/javascripts/template_fields.js">https://github.com/akiko-pusu/redmine_issue_templates/blob/master/assets/javascripts/template_fields.js</a></li>
</ul> Development: RE: Vue.js as frontend?https://www.redmine.org/boards/4/topics/58731?r=58879#message-588792020-02-25T14:56:53ZBernhard Rohloff
<p>I don't know if this is a hot topic anymore, but Akiko has some vue.js integration in her <a href="https://www.redmine.org/plugins/redmine_issue_templates" class="external">plugin</a> so perhaps she can ask your questions.</p>
<p>Kind regards,</p>
<p>Bernhard</p> Development: Vue.js as frontend?https://www.redmine.org/boards/4/topics/587312020-01-15T08:15:24ZChristian Schnabl
<p>Hi there,</p>
<p>i know this is the core development track, but i think its the right place to ask this question.<br />I was building custom redmine theme components for quite a while now - also integrated some react components.<br />But concerning the overall architecture of redmine i wonder if there is a clean way to integrate vue.js as a frontend framework handling main components.</p>
<p>I know that the rest api does of course not support everything, but based on the rails framework and the current state of redmine -</p>
<p>Do you think there is any kind of clean interfacing to connect vue.js with redmine ?</p>
<p>Best,<br />Chris</p> Development: Wow it is low .. very very looooow ... https://www.redmine.org/boards/4/topics/584452019-11-19T10:51:46ZGuillaume DUPE
<p>Hi everyone,</p>
<p>I have migrate to redmine 4.0.5 and when i render all my issues i have the following logs:</p>
<p>INFO -- : Rendering plugins/redmine_hide_estimated_hours/app/views/issues/index.html.erb within layouts/base<br />INFO -- : Rendered queries/_filters.html.erb (10.6ms)<br />INFO -- : Rendered queries/_columns.html.erb (3.7ms)<br />INFO -- : Rendered plugins/redmine_hide_estimated_hours/app/views/queries/_query_form.html.erb (18.5ms)<br />INFO -- : Rendered issues/_list.html.erb (64.8ms)<br />INFO -- : Rendered plugins/redmine_issue_templates/app/views/issue_templates/_issue_template_link.html.erb (0.1ms)<br />INFO -- : Rendered issues/_sidebar.html.erb (7.4ms)<br />INFO -- : Rendered plugins/redmine_hide_estimated_hours/app/views/issues/index.html.erb within layouts/base (104.9ms)<br />INFO -- : Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_html_head.html.erb (1.7ms)<br />INFO -- : Rendered plugins/redmine_improved_searchbox/app/views/redmine_improved_searchbox/_redmine_improved_searchbox_partial.html.erb (0.5ms)<br />INFO -- : Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (0.0ms)<br />INFO -- : Rendered plugins/redmine_backlogs/app/views/hooks/_rb_include_scripts.html.erb (1.7ms)<br />INFO -- : Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (0.1ms)<br />INFO -- : Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (0.1ms)<br /><strong>INFO -- : Completed 200 OK in 111042ms (Views: 149.1ms | ActiveRecord: 3220.9ms)</strong></p>
<p>So yes, it is a very huge time just for render one page.</p>
<p>First of all, I was thinking that was because of my plugins but when I saw the time I didn't know what was taking so long ? What is corresponding to the 107673ms (111042ms - 149ms - 3220ms) left ?</p>
<p>Thanks,</p>
<p>Guillaume.</p> Development: Time Report Querieshttps://www.redmine.org/boards/4/topics/584262019-11-14T23:54:31ZJérôme BATAILLE
<p>Hi, we have developed a plugin that brings <strong>Queries for Time Report</strong> like Time Entries Queries.</p>
<p>These queries can be <strong>added in My Page</strong>.<br />Fell free to test it, and give fixes / enhancements suggestion about it.</p>
<p>Thanks.</p>
<p><a class="external" href="http://www.redmine.org/plugins/redmine_queries_for_time_report">http://www.redmine.org/plugins/redmine_queries_for_time_report</a></p> Development: RE: Rails safe_attributes and plugin view hooks for user preferences can't set model...https://www.redmine.org/boards/4/topics/58229?r=58233#message-582332019-10-18T04:00:29ZMischa The Evil
<p>Bruce Pieterse wrote:</p>
<blockquote>
<p>1. Is the plugin implementation outdated now that safe_attributes was added to the UserPreference model and does the plugin actually need to be reworked?</p>
</blockquote>
<p>I think so.</p>
<blockquote>
<p>2. Is Redmine perhaps lacking support for plugins to automatically extend the safe_attributes list in some way?</p>
</blockquote>
<p>No, it is supported. See <a class="issue tracker-1 status-5 priority-5 priority-high2 closed" title="Defect: Safe Attributes prevents plugin extension of Issue model... (Closed)" href="https://www.redmine.org/issues/6000">#6000</a>.</p>
<blockquote>
<p>3. Wouldn't this plugin functionality make sense to be implemented into Redmine directly to further improve upon <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Start date and due date in email notifications (Closed)" href="https://www.redmine.org/issues/13307">#13307</a> instead of a separate plugin?</p>
</blockquote>
<p>Redmine core can't implement all functionality provided by all the plugins. That would cause Redmine to become bloatware.</p> Development: Rails safe_attributes and plugin view hooks for user preferences can't set model datahttps://www.redmine.org/boards/4/topics/582292019-10-17T19:17:12ZAnonymous
<p>I'm attempting to fix the <a href="https://github.com/raafael911/redmine_reminder" class="external">Redmine reminder plugin</a> which, I assume, was working before this commit <a class="external" href="https://www.redmine.org/projects/redmine/repository/revisions/15688/diff/">https://www.redmine.org/projects/redmine/repository/revisions/15688/diff/</a>.</p>
<p>I've debugged the plugin and found the source of the problem but I'm unable to find any documentation around the implementation done in this plugin, and a way to set additional safe_attributes extending from <code>Redmine::Hook::ViewListener</code>. I have very limited Ruby & Rails experience, so please keep that in mind. The problem seems to be that the safe_attributes list in <code>/app/models/user_preference.rb</code> doesn't allow the data from the plugin hook to be persisted to the database.</p>
<p>If I add the fields that are posted to the controller to the model, the data is saved correctly. How does one extended the safe_attributes list in this case?</p>
<p>I would also like to know the following:<br />1. Is the plugin implementation outdated now that safe_attributes was added to the UserPreference model and does the plugin actually need to be reworked?<br />2. Is Redmine perhaps lacking support for plugins to automatically extend the safe_attributes list in some way?<br />3. Wouldn't this plugin functionality make sense to be implemented into Redmine directly to further improve upon <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Start date and due date in email notifications (Closed)" href="https://www.redmine.org/issues/13307">#13307</a> instead of a separate plugin?</p>
<p>Thanks</p> Development: New Custom Field type providing an enumeration whose values are set in the projecthttps://www.redmine.org/boards/4/topics/581212019-10-04T13:36:11ZJérôme BATAILLE
<p>Hi,</p>
<p>We often need a list of values that are to be specified on a project basis.<br />The only place this can be done is within Categories, that's all.<br />So there is only one list available.</p>
<p>To reply to this need we have developed a plugin :<br /><a class="external" href="https://github.com/Smile-SA/redmine_smile_project_enumerations_custom_field_format">https://github.com/Smile-SA/redmine_smile_project_enumerations_custom_field_format</a></p>
<p>Hi think this could help to add more customization to the projects, keeping in mind that the process are driven globally in the Admin.</p>
<p>Do you think this behaviour could be integrated to Redmine Core ?</p>
<p><ins>Here are some scree captures to see how it is implemented</ins> :</p>
<ul>
<li>Possible values edition in <strong>project configuration</strong> :</li>
</ul>
<p><img src="https://www.redmine.org/attachments/download/24062/Project_Enumerations_Edit_20191004.png" style="border: 1px solid;" alt="" /></p>
<ul>
<li>Custom field <strong>settings</strong> :</li>
</ul>
<p><img src="https://www.redmine.org/attachments/download/24061/Project_Enumerations_CF_20191004.png" style="border: 1px solid;" alt="" /></p>
<ul>
<li>Custom field <strong>in issue</strong></li>
</ul>
<p><img src="https://www.redmine.org/attachments/download/24060/Project_Enumeration_In_Issue_20191004.png" style="border: 1px solid;" alt="" /></p> Development: Optimizing Search Box Speed with Large Datahttps://www.redmine.org/boards/4/topics/581112019-10-02T17:52:20ZShaun Gilroy
<p>Folks--</p>
<p>We have a redmine system with a large number of issues (180,000~), custom fields (about 40; 30 or so searchable), and journal records (1.5M or so) and searching has become something of a slow process (It can take up to 30+ seconds). We recently upgraded the EC2 class for the instance that the system runs on and got only modest gains out of the change (which is sort-of what I was expecting).</p>
<p>I was wondering if anyone has any tips for speeding that up the search?</p>