Skip to content
Snippets Groups Projects

Fix and refactoring gfm_autocomplete

Merged gitlab-qa-bot requested to merge fix_gfm_auto_complete into master

Created by: vsizov

  1. We are using username only for namespace functionality.
  2. Dunno why we need pagination functionality in member auto-complete. @Riyad we need discuss it.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: jouve

    That was changed to username because name can have spaces which broke gfm (#1223 (closed)).

    By Administrator on 2012-12-18T19:43:29 (imported from GitLab project)

    By Administrator on 2012-12-18T19:43:29 (imported from GitLab)

  • Created by: dzaporozhets

    much cleaner now. +1 for using names instead of usernames

    By Administrator on 2012-12-18T20:25:44 (imported from GitLab project)

    By Administrator on 2012-12-18T20:25:44 (imported from GitLab)

  • Created by: riyad

    • We use username for GFM because of names with spaces (see #1223 (closed)).
    • We have pagination because we can't search for users with the API at the moment, so we get all users for auto completion - page by page, because we can't get all at once.

    So :thumbsdown: for this one, sorry. :(

    By Administrator on 2012-12-18T20:37:24 (imported from GitLab project)

    By Administrator on 2012-12-18T20:37:24 (imported from GitLab)

  • Created by: vsizov

    then we should create separate action in controller for this functionality. It will be more cleaner than now. Also we can change API. But this ugly js must be deleted anyway. I can handle this. Thanks.

    By Administrator on 2012-12-18T20:51:22 (imported from GitLab project)

    By Administrator on 2012-12-18T20:51:22 (imported from GitLab)

  • Created by: riyad

    @vsizov a general way of searching/filtering would be great for the API, it would make this a lot simpler.

    By Administrator on 2012-12-18T20:53:49 (imported from GitLab project)

    By Administrator on 2012-12-18T20:53:49 (imported from GitLab)

  • Created by: vsizov

    Take a look here https://github.com/gitlabhq/gitlabhq/blob/master/app/views/notes/_note.html.haml#L4 in comments we use name but in gfm username. This mismatching must be fixed. My proposition is to use username everywhere. Name may be used for profile. What do you think guys?

    By Administrator on 2012-12-18T21:15:53 (imported from GitLab project)

    By Administrator on 2012-12-18T21:15:53 (imported from GitLab)

  • Created by: vsizov

    i keep this issue open because we need to discuss.

    By Administrator on 2012-12-18T21:23:54 (imported from GitLab project)

    By Administrator on 2012-12-18T21:23:54 (imported from GitLab)

  • Created by: riyad

    @vsizov +1

    By Administrator on 2012-12-18T21:55:37 (imported from GitLab project)

    By Administrator on 2012-12-18T21:55:37 (imported from GitLab)

  • Created by: dzaporozhets

    I prefer names over usernames. I created usernames only for one goal - namespace personal project. Sure usernames useful for social networks. But we build a self-hosted application for working. And i prefer to recognize my collegues by full name like "Valeriy Sizov" and not "vsizov"

    By Administrator on 2012-12-19T10:36:19 (imported from GitLab project)

    By Administrator on 2012-12-19T10:36:19 (imported from GitLab)

  • Created by: vsizov

    In this case we should write in comment something like this - @Valeriy Sizov. Do you like that?

    By Administrator on 2012-12-19T10:50:49 (imported from GitLab project)

    By Administrator on 2012-12-19T10:50:49 (imported from GitLab)

  • Created by: vsizov

    And why you've called its as username? Wouldn't be better - namespace or namespace_name?

    By Administrator on 2012-12-19T10:56:23 (imported from GitLab project)

    By Administrator on 2012-12-19T10:56:23 (imported from GitLab)

  • Created by: jouve

    I proposed #2206 that added a new syntax to cope with spaces in names (ex: @{Valery Sizov}) as an alternate of #2208 which was merged and replaced name by username.

    By Administrator on 2012-12-19T10:57:28 (imported from GitLab project)

    By Administrator on 2012-12-19T10:57:28 (imported from GitLab)

  • Created by: dzaporozhets

    @vsizov You think changing application behaviour to fit parser is a better way?

    By Administrator on 2012-12-19T11:16:27 (imported from GitLab project)

    By Administrator on 2012-12-19T11:16:27 (imported from GitLab)

  • Created by: vsizov

    @randx Let's talk about it over coffee. ;)

    By Administrator on 2012-12-19T11:56:26 (imported from GitLab project)

    By Administrator on 2012-12-19T11:56:26 (imported from GitLab)

  • Created by: vsizov

    i'll be back

    By Administrator on 2012-12-19T17:43:57 (imported from GitLab project)

    By Administrator on 2012-12-19T17:43:57 (imported from GitLab)

  • Created by: dzaporozhets

    :)

    By Administrator on 2012-12-19T17:45:32 (imported from GitLab project)

    By Administrator on 2012-12-19T17:45:32 (imported from GitLab)

  • Created by: vsizov

    i only did refactoring. Btw. I was unable to run tests.

    By Administrator on 2012-12-20T18:56:00 (imported from GitLab project)

    By Administrator on 2012-12-20T18:56:00 (imported from GitLab)

  • Created by: riyad

    Nice. :)

    By Administrator on 2012-12-20T19:18:03 (imported from GitLab project)

    By Administrator on 2012-12-20T19:18:03 (imported from GitLab)

Please register or sign in to reply
Loading