You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your challenge is to finish this web app which lists top 100 music albums from iTunes with search and filter functionality.
3
+
Your challenge is to finish this web app which lists the top 100 music albums from iTunes with search and filter
4
+
functionality.
4
5
5
-
* Create a new private Github repository.
6
-
* Download `albums-challenge-java.zip` file from this gist and import to that repository.
6
+
* Fork this GitHub repository.
7
7
* Implement the changes listed below.
8
-
* Invite members [@NostoLukas](https://github.com/NostoLukas) and [@ringaudaskalinauskas](https://github.com/ringaudaskalinauskas) with `Read` access for the review.
9
-
8
+
* Ensure that the GitHub CI build succeeds.
10
9
11
10
## Setup
12
11
13
12
### Requirements
14
13
15
-
*`Java 17` or newer
14
+
* Java 21 or newer
16
15
17
16
### Running
18
17
19
18
*`./gradlew bootRun`
20
19
* Open http://localhost:8080 in your browser.
21
20
22
-
>You can also run the app from IntelliJ by running `Application` class.
21
+
* You can also run the app from IntelliJ by running `Application` class.
23
22
24
23
25
24
## Your Tasks
@@ -28,23 +27,33 @@ Your challenge is to finish this web app which lists top 100 music albums from i
28
27
29
28
**NOTE**
30
29
31
-
There is `tests` directory with tests that cover most of required functionality. You can run tests by executing `./gradlew test` or executing them in IntelliJ.
30
+
The [tests](app/src/test) cover most of the required functionality. You can run tests by executing `./gradlew test` or
31
+
executing them in IntelliJ.
32
32
33
33
---
34
34
35
35
### 1. Implement price and year filtering options.
36
36
37
-
- Currently, there are some hardcoded filtering options (also called facets) for price and year filters. You need to generate options that are relevant for albums that matched search query.
38
-
- Price filtering options should be displayed in ranges, e.g. 0-5, 5-10, 10-15, etc.
39
-
- Year options should be all years that match at least one album, in descending order.
37
+
- Currently, there are some hardcoded filtering options (also called facets) for price and year filters. You need to
38
+
generate options that are relevant for albums that match the search query.
39
+
- Price filtering options should be displayed in ranges, e.g., `0-5`, `5-10`, `10-15`.
40
+
- Year filter options should be all years, in descending order, that match at least one album.
40
41
41
42
### 2. Implement result filtering.
42
43
43
44
- Search results can be narrowed by selecting some filtering options.
44
-
- Filters in the same group should be joined by "OR" and different groups are joined by "AND". For example, if user selects years 2018 and 2017, and price range 5-10, you should show albums which price is in range 5-10 **and** year is 2018 **or** 2017.
45
-
- When no filters are selected, show all the albums that match search query.
45
+
- Filters in the same group should be joined by `OR` and different groups are joined by `AND`. For example, if a user
46
+
selects the years 2017 and 2018, and price range `5-10`, you should show albums with a price between 5 and 10 _and_
47
+
from 2017 _or_ 2018.
48
+
- When no filters are selected, show all albums that match the search query.
46
49
47
50
### 3. Implement count for each filtering option.
48
51
49
-
- Each filtering option has a count displayed next to it which indicates how many results are matched by the filter. The numbers have to take into account selected filters in other groups and update as user checks or unchecks filters to be accurate for the current filtering combination.
50
-
- You should show only the options that will match at least one album. Thus, filtering options might change as user selects other filters. For example, if user selected price range 0-5 and there are no albums that cost less than $5 and were released in 2017, you shouldn't show year 2017 as a filtering option. But 2017 should appear as filtering option when user selects 5-10 price range (or has no price selected) because there are some albums that were released in 2017 and cost $9.99.
52
+
- Each filtering option has a count displayed next to it which indicates how many results are matched by the filter. The
53
+
numbers have to take into account selected filters in other groups and update as user checks or unchecks filters to be
54
+
accurate for the current filtering combination.
55
+
- You should show only the options that will match at least one album. Thus, filtering options might change when a user
56
+
selects other filters. For example, if a user selects price range `0-5` and there are no albums that cost between 0
57
+
and 5 and were released in 2017, you shouldn't show year 2017 as a filtering option. But 2017 should appear as
58
+
a filter option when the user selects the `5-10` price range (or has no price selected) because there are some albums
0 commit comments