-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[frontend] Adapt references to classes of OBS Factory code
Some of the name where clashing with some global ones. Now we prepend the name of the module and the global accessor. Also some unused code, controller and old routes were removed.
- Loading branch information
Moises Deniz Aleman
authored and
David Kang
committed
Jun 21, 2018
1 parent
a2b7c83
commit f77d0e4
Showing
12 changed files
with
71 additions
and
123 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
src/api/app/controllers/webui/obs_factory/application_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/api/app/controllers/webui/obs_factory/openqa_jobs_controller.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 2 additions & 17 deletions
19
src/api/app/helpers/webui/obs_factory/application_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
module ObsFactory | ||
module ApplicationHelper | ||
|
||
# Catch some url helpers used in the OBS layout and forward them to | ||
# the main application | ||
%w(home_path user_tasks_path root_path project_show_path search_path user_show_url user_show_path | ||
user_register_user_path news_feed_path project_toggle_watch_path | ||
project_list_public_path monitor_path projects_path new_project_path | ||
user_rss_notifications_url session_new_path session_create_path session_destroy_path).each do |m| | ||
define_method(m) do |*args| | ||
main_app.send(m, *args) | ||
end | ||
end | ||
|
||
module Webui::ObsFactory::ApplicationHelper | ||
def openqa_links_helper | ||
OpenqaJob.openqa_links_url | ||
ObsFactory::OpenqaJob.openqa_links_url | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/api/app/views/webui/obs_factory/openqa_jobs/index.html.erb
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/api/app/views/webui/obs_factory/staging_projects/_overall_state.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters