Project

General

Profile

Actions

Feature #33820

closed

Auto complete wiki page links

Added by Mizuki ISHIKAWA over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I think it would be useful to use the functionality of Tribute to auto complete the title of a wiki page at [[wiki page title]].



Files

ScreenShot_2020-08-06_10.58.16.png (31.3 KB) ScreenShot_2020-08-06_10.58.16.png Mizuki ISHIKAWA, 2020-08-06 04:02
ScreenShot_2020-08-06_10.58.32.png (22 KB) ScreenShot_2020-08-06_10.58.32.png Mizuki ISHIKAWA, 2020-08-06 04:02
feature-33820.patch (15.9 KB) feature-33820.patch Mizuki ISHIKAWA, 2020-08-06 04:04
feature-33820-v2.diff (8.66 KB) feature-33820-v2.diff Mizuki ISHIKAWA, 2020-11-18 01:13
feature-33820-v3-with-test.patch (9.78 KB) feature-33820-v3-with-test.patch Mizuki ISHIKAWA, 2021-02-15 01:23
feature-33820-v4.patch (10.2 KB) feature-33820-v4.patch Mizuki ISHIKAWA, 2021-02-25 01:40

Related issues

Related to Redmine - Feature #33425: Auto complete wiki macrosNew

Actions
Related to Redmine - Feature #31989: Inline issue auto complete (#) in fields with text-formatting enabledClosedGo MAEDA

Actions
Actions #1

Updated by Mizuki ISHIKAWA over 4 years ago

I attach a patch that adds this feature.

Actions #2

Updated by Go MAEDA over 4 years ago

  • Target version set to Candidate for next major release
Actions #3

Updated by Marius BĂLTEANU about 4 years ago

  • Assignee set to Marius BĂLTEANU

Nice feature, let me find a better way to pass the auto complete endpoint for each case (issues, wiki pages, etc).

Actions #4

Updated by Marius BĂLTEANU about 4 years ago

Actions #5

Updated by Marius BĂLTEANU about 4 years ago

  • Related to Feature #31989: Inline issue auto complete (#) in fields with text-formatting enabled added
Actions #6

Updated by Marius BĂLTEANU about 4 years ago

Marius BALTEANU wrote:

Nice feature, let me find a better way to pass the auto complete endpoint for each case (issues, wiki pages, etc).

I've posted an alternative solution in #34122, please let me know what do you think about it.

Beside this point, the patch needs at least two changes:
  • Use a collection for triggers (see my note from #33425)
  • Explore the possibility to show the wiki pages in parent - child relation or at least the parent if any in order to avoid confusion when there are multiple pages with the same title, but under different parent pages.
Actions #7

Updated by Marius BĂLTEANU about 4 years ago

  • Assignee deleted (Marius BĂLTEANU)
Actions #8

Updated by Go MAEDA about 4 years ago

Marius BALTEANU wrote:

Beside this point, the patch needs at least two changes:
  • Use a collection for triggers (see my note from #33425)
  • Explore the possibility to show the wiki pages in parent - child relation or at least the parent if any in order to avoid confusion when there are multiple pages with the same title, but under different parent pages.

I think the latter is not a problem. Wiki page names are unique in a project. You cannot create Wiki pages with the same name even if its parent pages are different.

Actions #9

Updated by Mizuki ISHIKAWA about 4 years ago

I fixed the patch by referring to the code of #34122.

Actions #10

Updated by Go MAEDA almost 4 years ago

  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0 again.

Actions #11

Updated by Marius BĂLTEANU almost 4 years ago

Mizuki, can you add a system tests for this? you should have enough examples.

Actions #12

Updated by Mizuki ISHIKAWA almost 4 years ago

Marius BALTEANU wrote:

Mizuki, can you add a system tests for this? you should have enough examples.

I have attached a patch with system test added.
There are already tests to check that tributes work on other pages, so I'm only added testing that the issues/new page can autocomplete the wiki page link.

Actions #13

Updated by Go MAEDA almost 4 years ago

I found a security issue.

Auto complete for wiki pages should not suggest pages that the current user cannot view. The current patch always shows wiki pages even if the current user does not have "View wiki".

Actions #14

Updated by Mizuki ISHIKAWA over 3 years ago

Go MAEDA wrote:

I found a security issue.

Auto complete for wiki pages should not suggest pages that the current user cannot view. The current patch always shows wiki pages even if the current user does not have "View wiki".

Thank you for pointing that out.
I changed to return nothing when you do not have permission.

Actions #15

Updated by Go MAEDA over 3 years ago

  • Subject changed from Auto Complete wiki page links to Auto complete wiki page links
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

Actions

Also available in: Atom PDF