[LRA-229] Create shared resources scheduling app Created: 02/Mar/16  Updated: 02/May/16  Resolved: 22/Apr/16

Status: Resolved
Project: Liferay Apps
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: mcalvo Assignee: Jose Ross [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Initial version of Liferay 6.2 and latest version of Liferay 6.2 CE and EE. Tomcat


 Description   
Create an app that allows admin user to
+ Define resources categories. For example: books, shared accounts, device, etc.
+ Define how many hours a person that is queue and has been chosen as the next one, has to confirm that still wants to book the resource.
+ Create a shared resource: title, description, picture (optional, we should have a default picture if not provided), categories.
+ They should be able erase or inactivate previously created resource. Inactive resources should not appear in lists of resources that can be booked.

Then the regular user should be able to search those shared resources or browse then by category. They should be able to see the resource status: booked or available.
+ If it is booked they should be able to see who is using it and since when, they should be able to send a message to the person that currently is using that resource. They can also request to be in the resource queue.
+ If it is not booked they should be able to book the resource. After booking that resource it should appear in "My bookings list". Then I can pick any of those and confirm that the resource is available for others to use. After that it should not longer appear in "My bookings list".

After someone made a resource available the app should pick the next person (based on request date) and inform that person that the resource is available, then this person will have certain number of hours to confirm that still wants to book the resource. The resource would be put in "pre-booked state" while waiting for that confirmation (no one can book it). If that person doesn't book the resource in the specified time-frame or confirms that no longer needs it, then the next one in the queue will notified. If no one else is in queue then the resource status will be put as available again.


 Comments   
Comment by Bolivar Ortiz [X] (Inactive) [ 08/Apr/16 ]
[BUG-01]Some elements are not displayed as expected

[DESCRIPTION]
The tables and the resource image are not displayed as expected, in order to see the table right columns you have to scroll right, and the resource image appears under the Book Shared Resource, the image should appear next to the resource details.

[ENVIRONMENT]
liferay-portal-6.2-ee-sp6

[BROWSER]
Chrome

[STEPS]
(Ensure there are resources already added)
1. Create a new page and add the Shared Resources app
2. In the Shared Resources box, click on All Shared Resources tab
3. Check the table
4. Then click on one the resources
5. Check the resource image
6. Click on the Book Shared Resources button and check the table that is displayed at the bottom

[IMAGE]
http://screencast.com/t/VOj9XT0l

--Verified as Resolved on 28/04/2016--
Comment by Bolivar Ortiz [X] (Inactive) [ 12/Apr/16 ]
[BUG-02]The categories/locations are still displaying after they were removed

[DESCRIPTION]
If the admin removes the categories/locations that were assigned, the app is still showing them in the user resources list.

[ENVIRONMENT]
liferay-portal-6.2-ee-sp6

[BROWSER]
Chrome

[STEPS]
(Ensure there are resources already added)
1. Log into the app using an admin user
2. Go to Manage Shared Resources
3. Click on Categories / Locations
4. Remove one of the Categories / Locations that are currently assigned to one of the resources
5. Use a regular user to log into the app
6. Check how the resource is still showing the Categories / Locations you removed

[VIDEO]
http://screencast.com/t/FjpuZL6ZD5

--Verified as Resolved on 28/04/2016--
Comment by Bolivar Ortiz [X] (Inactive) [ 13/Apr/16 ]
[BUG-03]There is no results when the user searches by typing the location

[DESCRIPTION]
In Manage Shared Resources, when the user types the location in the search text field, the app does not display any result, also if the user types the resource status, there is no results

[ENVIRONMENT]
liferay-portal-6.2-ee-sp6

[BROWSER]
Chrome

[STEPS]
(Ensure there are resources already added)
1. Log into the app using an admin user
2. Go to Manage Shared Resources
3. In the Search text field enter one of the location and click on Search
4. Repeat step 3 but now using one of the resources status

[VIDEO]
http://screencast.com/t/dUOaPF2dL

--Verified as "Still able to reproduce". however, the current behavior is different, the filter is not working at all, even if, i select any option on the dropdown list.
Comment by Bolivar Ortiz [X] (Inactive) [ 14/Apr/16 ]
[BUG-04] The notification message is not clear

[DESCRIPTION]
When a resource is returned and the notification is sent, the message is not clear

[ENVIRONMENT]
liferay-portal-6.2-ee-sp14

[BROWSER]
Safari

[STEPS]
(Ensure you have two users already created)
1. Log into the app with the first user
2. In All Shared Resources select one of the resources
3. Click on the Book Shared Resources
4. With the second user get logged into the app and book the same device user one booked in step three
5. Now user one has to return the resource he booked in step three
6. The app will send a notification to user two, check that message

[IMAGE]
http://screencast.com/t/OYg7bDWrgG9

--Verified as fixed on 28/04/2016--
Comment by Bolivar Ortiz [X] (Inactive) [ 18/Apr/16 ]
[BUG-05] Notifications are not displayed as expected

[DESCRIPTION]
The notifications do not display the white background.
They do not have the “Notifications (0)” label, and the section “requests (0)”

[ENVIRONMENT]
liferay-portal-6.2.0-ce-ga1

[BROWSER]
Chrome
Safari
Firefox

[STEPS]
1. Log into the app
2. Click on the notifications option

[IMAGE]
http://screencast.com/t/zeJ8XGIB2Wg

--Verified as fixed according with the dev message below--
Comment by Jose Ross [X] (Inactive) [ 21/Apr/16 ]
BUG-01
- Tables are not responsive, currently there is no alternative to prevent the scrollbar on small views.
- Changed layout of various pages to prevent the image from moving below the buttons.

BUG-02
- Updated categories and locations management, changed delete option to edit.

BUG-03
- Not an issue: Location and Category should be filtered using the dropdown instead of the text field.

BUG-04
- Updated the notification message for clarity: “Please complete booking within X minutes”

BUG-05
- Not an issue: Notifications change appearance depending of the Liferay version.
Comment by Jose Ross [X] (Inactive) [ 22/Apr/16 ]
https://github.com/rivetlogic/liferay-shared-resources-manager/pull/2
Comment by Luis Hernandez [X] (Inactive) [ 28/Apr/16 ]
========Bugs Verification Status:=========
BUG-01: Fixed
BUG-02: Fixed
BUG-03: Still able to reproduce
Reason: The current behavior is different, the filter is not working at all, even if, i select any option on the dropdown list.

--29/04/2016 Note: Review this issue, I notice that the behavior above is a cache issue of my web browser, so this bug was fixed...
Verified as Fixed
---
BUG-04: Fixed
BUG-05: Non valid
Comment by Luis Hernandez [X] (Inactive) [ 28/Apr/16 ]
[BUG-06] The resource images are not well displayed on the resources table

PRECONDITIONS:
====================
1- A page should be configured with the “Shared Resoures” portlet
2- A resource should be added with a really big resolution resource image

ENVIRONMENT
====================
Liferay Server: Liferay-portal-6.2-ee-sp14
Web Browser: FireFox VERSION < FireFox 46.x

REPRODUCIBILITY LEVEL:
====================
Always

STEPS:
====================
1- Log into the app using a non admin user
2- Go to the page of the precondition #1
3- Review the image of the resource of the precondition #2

CURRENT RESULT:
====================
The resource images are not well displayed on the resources table

Watch the next video:
http://screencast.com/t/gu82cONNDK

EXPECTED RESULT:
====================
The resource images should be displayed with a proper size


--Verified as Fixed on 29/04/2016 build--
Comment by Luis Hernandez [X] (Inactive) [ 28/Apr/16 ]
[BUG-07] The admin tool allows to delete a resource with a “booked” status

PRECONDITIONS:
====================
1- A page should be configured with the “Shared Resoures” portlet.
2- A resource should be booked by other user previusly.

ENVIRONMENT
====================
Liferay Server: Liferay-portal-6.2-ee-sp14


REPRODUCIBILITY LEVEL:
====================
Always

STEPS:
====================
1- Log into the app using an admin user
2- Go to “My SItes” at the top menu, and click on the “Site Administration”/”Content”
3- Click on the “Manage Shared Resources”
4- Search for the resource of the precondition#2 and try to delete it

CURRENT RESULT:
====================
The admin tool allows to delete a resource with a “booked” status

Watch the next video:
http://screencast.com/t/KwCi5esH

EXPECTED RESULT:
====================
The application should not allow to delete the booked resource.


--Verified as Fixed on 29/04/2016 build--
Comment by Jose Ross [X] (Inactive) [ 29/Apr/16 ]
BUG-06
- Fixed css for images in tables
BUG-07
- Hide delete button when a resource is booked

https://github.com/rivetlogic/liferay-shared-resources-manager/pull/4
Generated at Sat Feb 10 05:49:32 GMT 2024 using Jira 8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6.