Giter VIP home page Giter VIP logo

redlime's People

Contributors

gimco avatar kostajh avatar tosher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

redlime's Issues

Use buffer for comments and editing issue descriptions

I'm wondering what you think of using buffers for editing comments and issue descriptions, much like GitSavvy does for writing commit messages.

Using a full buffer would make writing lengthier comments or description edits much easier -- currently I keep submitting comments/issue edits before they are ready because "Enter" automatically submits the text. If we use a buffer we'd also get the advantages of syntax highlighting and any other plugins that operate on the buffer.

Request for extras

Many thanks for this work, I am finding it very useful. I wonder if you have considered adding the ability to create a new issue or to log time against an issue or a project - that would make it pretty perfect for me!

No worries if you are too busy with other stuff or that you do not have this need

kevin

error opening project with many issues

I got this error trying to open a project with a big amount of issues

Text 3\Packages\Redlime\redlime.py", line 335, in run
selected_header = max([h for h in headers if h.b < selected.b])
ValueError: max() arg is an empty sequence

Custom fields are not displaying

Custom fields don't display. This is a copy of my settings file. Branch and Department are custom fields for me in Redmine, Any custom field I attempt to add fails to appear, neither a label or null value. I have highlighted the custom field definitions in the configuration below:

{
"redmine_url" : "xxxxxxxxxx",
"api_key": "xxxxxxxxxx",
"projects_filter": ["da", "cm", "da-incomming", "workflow-incoming"],
"query_page_size": 40,
"syntax_file": "Packages/Redlime/Redlime.tmLanguage",
"issue_list_columns": [
{ "prop": "id", "colname": "#", "custom": false, "align": "right" },
{ "prop": "fixed_version", "colname": "Version", "custom": false},
{ "prop": "tracker", "colname": "Type", "custom": false},
{ "prop": "priority", "colname": "Prior.", "custom": false},
{ "prop": "status", "colname": "Status", "custom": false},
{ "prop": "subject", "colname": "Subject", "custom": false, "maxlen": 80},
{ "prop": "assigned_to", "colname": "Assigned", "custom": false},
],
"issue_view_columns": [
{ "prop": "id", "colname": "Issue", "custom": false},
{ "prop": "project", "colname": "Project", "custom": false},
{ "prop": "status", "colname": "Status", "custom": false},
{ "prop": "priority", "colname": "Priority", "custom": false},
{ "prop": "assigned_to", "colname": "Assigned to", "custom": false},
{ "prop": "category", "colname": "Category", "custom": false},
{ "prop": "fixed_version", "colname": "Target Version", "custom": false},
{ "prop": "department", "colname": "Department", "custom": true},
{ "prop": "branch", "colname": "Branch", "custom": true},

{ "prop": "time_to_reaction", "colname": "Time to reaction", "custom": false},
{ "prop": "waiting_response", "colname": "Waiting response", "custom": false},
{ "prop": "start_date", "colname": "Start date", "custom": false, "type": "datetime"},
{ "prop": "due_date", "colname": "Due date", "custom": false, "type": "datetime"},
{ "prop": "estimated_hours", "colname": "Estimated Time", "custom": false},
{ "prop": "author", "colname": "Author", "custom": false},
{ "prop": "created_on", "colname": "Creation date", "custom": false, "type": "datetime"}
]
}

screenclip 1

Submitting an updated description

I'm using the six plugin so I have Vim keybindings. I use insert mode to be able to use the keyboard shortcuts. After I've updated a description, I can't figure out what I'm supposed to press to submit the new description. Sorry if I'm missing something obvious!

Comment on issue view fails in 2 column layout

If I am in 2 column layout and try to invoke the comment command from an issue page, it fails:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 490, in run_async_view_listener_callback
    vel.__class__.__dict__[name](vel)
  File "/Users/me/Library/Application Support/Sublime Text 3/Packages/Redlime/redlime.py", line 39, in on_activated_async
    cols=cols
  File "/Users/me/Library/Application Support/Sublime Text 3/Packages/Redlime/base/shortcuts_menu.py", line 86, in __init__
    line = self.html_shortcut_tpl % {'keyname': self.show_key(shortcuts[k][0]), 'cmdname': shortcuts[k][1]}
  File "/Users/me/Library/Application Support/Sublime Text 3/Packages/Redlime/base/shortcuts_menu.py", line 110, in show_key
    keys = keyname.split('+')
AttributeError: 'NoneType' object has no attribute 'split'

Switching back to single view layout allows the comment command to execute.

Certificate verify failed when using a custom ssl cert

If the configured redmine server uses a self-generated https certificate we'll get the next error:

Traceback (most recent call last):
  File "~/.config/sublime-text-3/Packages/requests/all/requests/packages/urllib3/connectionpool.py", line 595, in urlopen
    chunked=chunked)
  File "~/.config/sublime-text-3/Packages/requests/all/requests/packages/urllib3/connectionpool.py", line 352, in _make_request
    self._validate_conn(conn)
  File "~/.config/sublime-text-3/Packages/requests/all/requests/packages/urllib3/connectionpool.py", line 831, in _validate_conn
    conn.connect()
  File "~/.config/sublime-text-3/Packages/requests/all/requests/packages/urllib3/connection.py", line 289, in connect
    ssl_version=resolved_ssl_version)
  File "~/.config/sublime-text-3/Packages/requests/all/requests/packages/urllib3/util/ssl_.py", line 308, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "./python3.3/ssl.py", line 246, in wrap_socket
  File "./python3.3/ssl.py", line 350, in __init__
  File "./python3.3/ssl.py", line 346, in __init__
  File "./python3.3/ssl.py", line 553, in do_handshake
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548)

Can't "List Queries" {Resolved: Global Queries aren't currently supported}

Right now, nothing happens when selecting any of Redlime issue: Create or Redlime: List Queries from the Sublime command palette, but view/editing issues & Redlime: Project Issues all work.

Should the custom queries appear when clicking on list queries? Can I enter a subset of custom query IDs?

These are my user settings:

{
    "redmine_url": "http://internal.redmine.com/redmine",
    "api_key": "<removed>",
    "projects_filter": ["project-a", "project-b"],
    "assigned_to_group_id_filter": [],
    "query_page_size": 50,
    "issue_list_columns": [
        { "prop": "id", "colname": "#", "custom": false, "align": "right" },
        { "prop": "project", "colname": "Project", "custom": false},
        { "prop": "priority", "colname": "Prior.", "custom": false},
        { "prop": "status", "colname": "Status", "custom": false},
        { "prop": "author", "colname": "Author", "custom": false},
        { "prop": "assigned_to", "colname": "Assigned", "custom": false},
        { "prop": "subject", "colname": "Subject", "custom": false, "maxlen": 30},
        { "prop": "due_date", "colname": "Due Date", "custom": false, "type": "datetime"},
        { "prop": "done_ratio", "colname": "% Done", "custom": false, "type": "progressbar"}
    ],
    "issue_view_columns": [
        { "prop": "id", "colname": "Issue", "custom": false},
        { "prop": "project", "colname": "Project", "custom": false},
        { "prop": "status", "colname": "Status", "custom": false},
        { "prop": "priority", "colname": "Priority", "custom": false},
        { "prop": "done_ratio", "colname": "Done ratio", "custom": false, "type": "progressbar"},
        { "prop": "author", "colname": "Author", "custom": false},
        { "prop": "assigned_to", "colname": "Assigned to", "custom": false},
        { "prop": "created_on", "colname": "Creation date", "custom": false, "type": "datetime"}
    ]
}

Assign filter hangs

I have configured my user setttings to link to a Redmine instance. When I perform a "List Queries" request I am returned a set of ticket items. But when I attempt to issue an "Assign Filter" operation it causes Sublime Text to hang. In the end I have to kill the process and re-open Sublime Text.

I am using the most recent version of Sublime Text 3
screenclip

Can't create new issues

When trying to create new issues, the following error shows in the console:

Redlime.libs.redmine.exceptions.ResourceNotFoundError: Requested resource doesn't exist
Traceback (most recent call last):
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/base/rl_issue_create.py", line 46, in on_project_done
    self.users = [self.redmine.user.get(user.user.id) for user in self.redmine.project_membership.filter(project_id=self.issue_data['project_id']) if hasattr(user, 'user')]
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/base/rl_issue_create.py", line 46, in <listcomp>
    self.users = [self.redmine.user.get(user.user.id) for user in self.redmine.project_membership.filter(project_id=self.issue_data['project_id']) if hasattr(user, 'user')]
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/libs/redmine/managers/base.py", line 87, in get
    raise e
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/libs/redmine/managers/base.py", line 83, in get
    return self.to_resource(self.redmine.engine.request('get', self.url, params=self.params)[self.container])
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/libs/redmine/engines/base.py", line 76, in request
    return self.process_response(self.session.request(method, url, **kwargs))
  File "/Users/michael/Library/Application Support/Sublime Text 3/Packages/Redlime/libs/redmine/engines/base.py", line 157, in process_response
    raise exceptions.ResourceNotFoundError
Redlime.libs.redmine.exceptions.ResourceNotFoundError: Requested resource doesn't exist

Every other function of redlime seems to work.

Issue actions on query page

It would be nice to quick edit issues from the query page so that setting % done, estimated time, etc. could be accessed without having to open the issue and then perform actions and close each issue.

Can't edit keymap

When I try to edit the keymap for redlime the console returns: error: The settings file "res://Packages/Redlime/Default.sublime-keymap" could not be opened. Ideal behavior is that the keybinding menu should open the "res://Packages/Redlime/Default (Platform).sublime-keymap" and the user's "res://Packages/User/Default.sublime-keymap" side by side for editing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.