-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix/AUT-470/FooBar-Extension #192
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code is respecting code style rules
- New code is respecting best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
controller/TaoFooBar.php
Outdated
@@ -0,0 +1,52 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line,
controller/TaoFooBar.php
Outdated
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2014-2020 (original work) Open Assessment Technologies SA; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad year
controller/TaoFooBar.php
Outdated
$this->setData('author', 'Open Assessment Technologies SA'); | ||
$this->setView('templates/foobar.tpl'); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing \n
controller/structures.xml
Outdated
<section id="taoFooBar_other" name="Template" url="/taoFooBar/templates/foobar" /> | ||
</sections> | ||
</structure> | ||
</structures> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing \n also we need to allays format our code according to OAT
for PHP --> psr12
for Js we have a specific tool
views/templates/foobar.tpl
Outdated
@@ -0,0 +1,3 @@ | |||
<div class="main-container tao-scope"> | |||
<h1>Hello <?=(get_data('author'))?></h1> | |||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing \n
views/js/controller/Foo/barex.js
Outdated
@@ -0,0 +1,26 @@ | |||
|
|||
|
|||
define([], function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format check please,
also the second commit looks good but the initial one is not as you have not used the conventional commits
the PR is a start , i did not check any of the item on the list because :
also please take a look at this : overall this is a exercise so this is how you learn , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- no need to commit empty files
- use
console
instead ofwindow.console
- when menu button will be fixed you will have only one controller
index
, other controllers dummy for now
Related issue:
https://oat-sa.atlassian.net/browse/AUT-470
Description
This is a foo-bar extension for Onboard Process, No testing environment has been configured in the kitchen Environment.
Current Issue Extension is installed but not showing up in Application Header.
Steps to reproduce:
How to test: Clone the branch and install it in the application .