Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/work package on page diff #255

Merged
merged 3 commits into from
Jul 18, 2013

Conversation

ulferts
Copy link
Contributor

@ulferts ulferts commented Jul 17, 2013

The functionality itself is adapted from issue#show.

On the other hand, the diff is no longer rendered with the full url as the
link's href. Using the full url caused problems with selenium tests that
ran into problems with cross domain requests. This could have been fixed
by setting the application's host and protocol setting accordingly.
However, it is much cleaner to use a relative url. So for rendering the
diff inside the application the behaviour was alterd to use relative
url. The full url is now only used where it is absolutely necessary
(pdf, email).

Issue on OP: https://www.openproject.org/issues/1420

The functionality itself is adapted from issue#show.

On the other hand, the diff is no longer rendered with the full url as the
link's href. Using the full url caused problems with selenium tests that
ran into problems with cross domain requests. This could have been fixed
by setting the application's host and protocol setting accordingly.
However, it is much cleaner to use a relative url. So for rendering the
diff inside the application the behaviour was alterd to use relative
url. The full url is now only used where it is absolutely necessary
(pdf, email).
This view should not be specific to issues/work_packages.

Using polymorphic_url will for now lead to paths like "/issues/5".
But once only work_packages exist this will no longer be a problem.
nkenneweg added a commit that referenced this pull request Jul 18, 2013
@nkenneweg nkenneweg merged commit 6d5fa38 into feature/rails3 Jul 18, 2013
@nkenneweg nkenneweg deleted the feature/work_package_on_page_diff branch July 18, 2013 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants