Project

General

Profile

Actions

Task #928

closed

Formatting code in tickets' description

Added by Fabio Sinibaldi over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
System Application
Target version:
Start date:
Oct 08, 2015
Due date:
Nov 30, 2015
% Done:

100%

Estimated time:
Infrastructure:
Development, Production

Description

Please, provide a way to gracefully format code in tickets' description and comments.


Related issues

Related to D4Science Infrastructure - Task #1475: Please Move http://paste.research-infrastructures.eu/ to http://paste.d4science.org/Closed_InfraScience Systems EngineerNov 20, 2015Nov 30, 2015

Actions
Actions #1

Updated by Luca Frosini over 9 years ago

  • Tracker changed from Feature to Task
  • Project changed from 2 to D4Science Infrastructure
  • Category changed from Other to System Application
  • Target version changed from 143 to Redmine management
  • Infrastructure Production added
Actions #2

Updated by Luca Frosini over 9 years ago

  • Due date set to Oct 30, 2015
Actions #3

Updated by Luca Frosini over 9 years ago

  • Due date changed from Oct 30, 2015 to Nov 30, 2015
Actions #4

Updated by Luca Frosini over 9 years ago

  • Related to Task #1475: Please Move http://paste.research-infrastructures.eu/ to http://paste.d4science.org/ added
Actions #5

Updated by Luca Frosini over 9 years ago

Investigating the issue we have thought that we should use paste for code or exception
http://paste.research-infrastructures.eu/
I have also create the ticket #928 to move that url in http://paste.d4science.org/

Actions #6

Updated by Luca Frosini over 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100
Actions #7

Updated by Luca Frosini over 9 years ago

  • Status changed from In Progress to Feedback
Actions #8

Updated by Andrea Dell'Amico over 9 years ago

There is also a pastebin-like plugin for redmine. Maybe it's a better choice, as it's integrated with the platform? See https://github.com/commandprompt/redmine_pastebin It's old, but it does not need to to anything new. It's based on the 'coderay' library, all the logic is inside it: http://coderay.rubychan.de

Actions #9

Updated by Luca Frosini over 9 years ago

  • Status changed from Feedback to In Progress
  • % Done changed from 100 to 50

This sounds good. Can you install it? I updated the google sheet we use to keep track of plugins.
The needs to move the url of paste is valid as well, even if is not so urgent.

Actions #10

Updated by Fabio Sinibaldi over 9 years ago

Are we sure we want to use paste service?
In my understanding it only holds pasted code for a restricted amount of time, making the details in the ticket unreadable after that period.
Correct me if I'm wrong.

Actions #11

Updated by Andrea Dell'Amico over 9 years ago

  • Infrastructure Development added

The public services, yes. The redmine plugin, I do not know yet. I'm going to install it on the test redmine instance to see if it fits with our needs.

Actions #12

Updated by Andrea Dell'Amico over 9 years ago

I confirm that it's possible to configure pastes to never expire. See http://redmine-d.d4science.org/projects/d4science/pastes/new

Actions #13

Updated by Luca Frosini over 9 years ago

Just for clarification to @fabio.sinibaldi@isti.cnr.it The link provided by @andrea.dellamico@isti.cnr.it is from a redmine test installation.
@fabio.sinibaldi@isti.cnr.it even with this plugin is not possible to paste the code directly inside the description or comment, but at least you don't have to change website, look and feel and furthermore the paste does not expire if you want, as required from the ticket.

I think we can proceed to install it on production. When available I'll advise developers using VREs.

Actions #14

Updated by Andrea Dell'Amico over 9 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 50 to 100

Installed.
The module needs to be explicitly activated on each project: Settings -> Modules -> Pastes where we want it.

Actions #15

Updated by Fabio Sinibaldi over 9 years ago

@andrea.dellamico@isti.cnr.it I can't access the provided link http://redmine-d.d4science.org/projects/d4science/pastes/new for authorization rules. Just a quick question : is the "permanent" option available per pasted code or is it possible to configure it to always keep the pasted code? We need to be sure that we don't lose information, so if it's an option that everybody should set, at least we should set it to "permanent" as default.

Actions #16

Updated by Andrea Dell'Amico over 9 years ago

Fabio Sinibaldi wrote:

@andrea.dellamico@isti.cnr.it I can't access the provided link http://redmine-d.d4science.org/projects/d4science/pastes/new for authorization rules. Just a quick question : is the "permanent" option available per pasted code or is it possible to configure it to always keep the pasted code? We need to be sure that we don't lose information, so if it's an option that everybody should set, at least we should set it to "permanent" as default.

It's per paste, but permanent is the default.

Actions #17

Updated by Luca Frosini over 9 years ago

  • Status changed from Feedback to Closed

Activated in all projects.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)