Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Bump ui-router to fix double activity hash

Oliver Güntherdd5067158263
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index f452e9d23c4..2f819b036d5 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -3424,9 +3424,9 @@
}
},
"@uirouter/angular": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/@uirouter/angular/-/angular-8.0.0.tgz",
- "integrity": "sha512-ti7U7AUrdxwcL8BKJAYG1rOMjOe3dvZRGGzf3vEgjrE/Hw8AimR2OjMOYJwZH6IAcuwXCT5lolwQY8TJU40mBA==",
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/@uirouter/angular/-/angular-8.0.1.tgz",
+ "integrity": "sha512-iW/nFSVWbh19rcjg07SWDxg91xkM0/2YUzkvMtw5ZpEph9qo33vhFJGctx/shW0GmWkWEv/HkTS0QtUplnOQLg==",
"requires": {
"tslib": "^2.0.0"
}
diff --git a/frontend/package.json b/frontend/package.json
index 4eceef50269..11963e1a818 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -83,7 +83,7 @@
"@sentry/angular": "6.2.3",
"@sentry/tracing": "6.2.3",
"@sentry/types": "^6.2.3",
- "@uirouter/angular": "^8.0.0",
+ "@uirouter/angular": "^8.0.1",
"@uirouter/core": "^6.0.7",
"@uirouter/rx": "^0.6.5",
"@w11k/ngx-componentdestroyed": "^5.0.2",
diff --git a/spec/features/work_packages/tabs/activity_tab_spec.rb b/spec/features/work_packages/tabs/activity_tab_spec.rb
index bc66f3d1972..20a8ee2f012 100644
--- a/spec/features/work_packages/tabs/activity_tab_spec.rb
+++ b/spec/features/work_packages/tabs/activity_tab_spec.rb
@@ -79,8 +79,7 @@ describe 'Activity tab', js: true, selenium: true do
idx + 1
end
- date_selector = ".work-package-details-activities-activity:nth-of-type(#{actual_index}) " +
- '.activity-date'
+ date_selector = ".work-package-details-activities-activity:nth-of-type(#{actual_index}) .activity-date"
# Do not use :long format to match the printed date without double spaces
# on the first 9 days of the month
expect(page).to have_selector(date_selector,
@@ -133,6 +132,16 @@ describe 'Activity tab', js: true, selenium: true do
it_behaves_like 'shows activities in order'
end
+ it 'can deep link to an activity' do
+ visit "/work_packages/#{work_package.id}/activity#activity-#{note_2.id}"
+
+ work_package_page.ensure_page_loaded
+ expect(page).to have_selector('.user-comment > .message',
+ text: initial_comment)
+
+ expect(page.current_url).to match /\/work_packages\/#{work_package.id}\/activity#activity-#{note_2.id}/
+ end
+
it 'can toggle between activities and comments-only' do
expect(page).to have_selector('.work-package-details-activities-activity-contents', count: 3)
expect(page).to have_selector('.user-comment > .message', text: note_2.notes)