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

Blackboard REST MVP #1752

Closed
wants to merge 383 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
383 commits
Select commit Hold shift + click to select a range
f215c39
Add default export to 'MimeTypeList' and move React.memo to the default
PenghaiZhang Apr 16, 2020
8cd9fa4
Rename this component to 'MimeTypeFilterEditingDialog';
PenghaiZhang Apr 16, 2020
f05ee40
Keep the initial Search setting and do not pick out the initial values
PenghaiZhang Apr 16, 2020
f28d1d6
Create a new utility to handle immutable arrays;
PenghaiZhang Apr 16, 2020
787b64c
Support 'secondaryText' of 'SettingsListControl' to be undefined;
PenghaiZhang Apr 16, 2020
f541c83
fix some dependencies. makecontent indexing dropdown save values
mrblippy Apr 17, 2020
5b4ad7c
Updated search settings page description
mrblippy Apr 17, 2020
b25636b
fix up type on urlLevel
mrblippy Apr 17, 2020
5069fdd
Handle the 207 response. If the 207 response includes non-2xx codes
PenghaiZhang Apr 17, 2020
3830e92
Move the endpoint for MIME Type to the top level rather than under
PenghaiZhang Apr 17, 2020
01ff772
type fixing, this time it will work for sure
mrblippy Apr 17, 2020
ab94be8
change the right language string
mrblippy Apr 17, 2020
67f82cb
Documentation for how to handle REST requests that cantain multiple i…
PenghaiZhang Apr 17, 2020
975315d
removed redundant divider
mrblippy Apr 17, 2020
19efbff
Move the MimeType test to itw own class;
PenghaiZhang Apr 17, 2020
271a7ab
Return 400 for UnrecognizedPropertyException if marshalling fails
PenghaiZhang Apr 17, 2020
d3b2436
Merge branch 'develop' into component/search_configuration
SammyIsConfused Apr 20, 2020
dfed272
Add proper JSDoc.
PenghaiZhang Apr 20, 2020
72ec095
Merge branch 'component/search_configuration' into bugfix/allow_wider…
SammyIsConfused Apr 20, 2020
06d9364
Use a percentage rather than pixel value for responsive scaling
SammyIsConfused Apr 20, 2020
166ead7
Resync package.json
SammyIsConfused Apr 20, 2020
3280cf6
address PR feedback
mrblippy Apr 20, 2020
46eb816
Add story for SettingsListControl.tsx
SammyIsConfused Apr 20, 2020
00b16df
Fix JSdoc for the SettingsListControl.tsx
SammyIsConfused Apr 20, 2020
0f3f5ae
Fix jest test
SammyIsConfused Apr 20, 2020
abb4646
Merge pull request #1617 from SammyIsConfused/bugfix/allow_wider_cont…
SammyIsConfused Apr 20, 2020
b35c812
Add Jest test for MimeTypeFilterEditingDialog.
PenghaiZhang Apr 20, 2020
4d93c6f
Merge branch 'component/search_configuration' into feature/search-fil…
PenghaiZhang Apr 20, 2020
025a151
Fix documentation for SettingsList.tsx
SammyIsConfused Apr 20, 2020
49ac790
Add story for SettingsList.tsx
SammyIsConfused Apr 20, 2020
3afae7c
update package-lock
mrblippy Apr 20, 2020
fae254f
Revert "update package-lock"
mrblippy Apr 20, 2020
640f03c
Add story for MimeTypeFilterEditingDialog and MimeTypeList
PenghaiZhang Apr 20, 2020
1addd52
Use storybook provided knob object for json objects
PenghaiZhang Apr 20, 2020
ac7b81c
Remove unecessary knobs from SettingsList story
SammyIsConfused Apr 21, 2020
977dfb2
Add SettingsToggleSwitch story
SammyIsConfused Apr 21, 2020
677b63d
Add Jest test for the Array Utility;
PenghaiZhang Apr 21, 2020
3d604bf
Merge pull request #1616 from mrblippy/feature/content-indexing-page
mrblippy Apr 21, 2020
9b58a20
Merge pull request #1622 from SammyIsConfused/chore/add_story_to_sett…
SammyIsConfused Apr 21, 2020
752f8bb
Add full stops to JSDoc;
PenghaiZhang Apr 21, 2020
a0a4015
Merge branch 'component/search_configuration' into feature/search-fil…
PenghaiZhang Apr 21, 2020
8716476
Merge pull request #1613 from PenghaiZhang/feature/search-filter-page
PenghaiZhang Apr 21, 2020
6be2ee9
Entity, DAO and Service for the Faceted Search Classification.
PenghaiZhang Apr 22, 2020
4943816
Remove the setter of id
PenghaiZhang Apr 22, 2020
efeda80
Merge branch 'develop' into component/search_configuration
edalex-ian Apr 22, 2020
3809f2b
Merge branch 'develop' into component/search_configuration
edalex-ian Apr 22, 2020
f3c6297
Remove @JsonIgnore from 'dateCreated' and 'dateModified';
PenghaiZhang Apr 23, 2020
873e143
All the basic database related methods are already provided by
PenghaiZhang Apr 23, 2020
61789e1
Support data migration for the new classification table;
PenghaiZhang Apr 23, 2020
ad17ca2
Headers for new files.
PenghaiZhang Apr 23, 2020
a42cb8e
Add 'FacetedSearchClassification' to 'InitialSchema'
PenghaiZhang Apr 23, 2020
c6c3137
chore: rerun prettier 2.0 on component/search_configuration
edalex-ian Apr 23, 2020
98cae93
Add new endpoints to support create, retrieve, update and delete faceted
PenghaiZhang Apr 24, 2020
9501c92
Add the testing json file
PenghaiZhang Apr 24, 2020
3efafd9
Seach boosting sliders i did all by myself
mrblippy Apr 24, 2020
2d7830c
formatting changes
mrblippy Apr 24, 2020
ed3819a
moved ariaText function to constant
mrblippy Apr 24, 2020
5d7d9dc
Merge branch 'component/search_configuration' into feature/boost-sett…
mrblippy Apr 24, 2020
7d3777c
Specify the endpoint path at the top of the file;
PenghaiZhang Apr 24, 2020
bf3ad59
Merge pull request #1631 from PenghaiZhang/feature/faceted-search-bac…
PenghaiZhang Apr 26, 2020
a21cfdc
The confirm button text on 'ConfirmDialog' should not be limited to '…
PenghaiZhang Apr 28, 2020
6639eb7
Create a top level component that provides a save button, a snack bar
PenghaiZhang Apr 28, 2020
ac85f85
Update ConfirmDialog and tests using this dialog
PenghaiZhang Apr 28, 2020
31fda33
Add a story for SettingPageTemplate
PenghaiZhang Apr 28, 2020
663a9d3
Move function 'blockNavigationWithBrowser' to 'NavigationGuard' as it
PenghaiZhang Apr 29, 2020
c6a0db7
Test if the ConfirmDialog is hidden when route is not changed.
PenghaiZhang Apr 29, 2020
e81e7a8
Fix Prettier format issue
PenghaiZhang Apr 29, 2020
d63a3ab
Describe SettingPageTemplate story with Knobs
PenghaiZhang Apr 29, 2020
9b62808
Beginnings of ContentIndexing jest test
mrblippy Apr 29, 2020
fc8c9da
Merge branch 'feature/boost-settings' of https://github.com/mrblippy/…
mrblippy Apr 29, 2020
7c331e9
Refactor config.ts
edalex-ian Apr 30, 2020
28db3ca
autotest pr feedback
mrblippy Apr 30, 2020
52efd1c
Add JSDoc for ConfirmDialog;
PenghaiZhang Apr 30, 2020
1c4d20f
Added new facet search settings category
mrblippy Apr 30, 2020
67cf0b4
Create a dedicated component for the Save button and use it in the
PenghaiZhang Apr 30, 2020
3bf49fc
Property setup lazy loading for RichTextEditor
edalex-ian Apr 30, 2020
66f044f
Refactor 'SearchPageSettings', including:
PenghaiZhang Apr 30, 2020
94f2800
Fix SearchSettingsTest:
PenghaiZhang Apr 30, 2020
c47b9dc
Merge pull request #1655 from mrblippy/feature/boost-settings
mrblippy Apr 30, 2020
83078b9
Merge branch 'component/search_configuration' into feature/refactor-c…
PenghaiZhang Apr 30, 2020
27fca1f
Refactor ContentIndexSetting:
PenghaiZhang May 1, 2020
af2c13d
Merge pull request #1674 from mrblippy/feature/facet-subcategory
mrblippy May 1, 2020
40682b8
Ensure the ContentIndexSettings jest test is happy with SettingPageTe…
PenghaiZhang May 1, 2020
f1f182a
Instead of mocking SettingPageTemplate, it's better to mock Navigatio…
PenghaiZhang May 1, 2020
70b7d8b
Do not need a dedicated component for the Save button in Setting pages
PenghaiZhang May 1, 2020
c5d3bf8
Merge pull request #1665 from PenghaiZhang/feature/refactor-commonali…
edalex-ian May 2, 2020
dc029eb
Remove the old Search setting page from Setting menu.
PenghaiZhang May 4, 2020
16662d8
Remove language strings used in old Search setting page.
PenghaiZhang May 4, 2020
6428cb3
Remove Freemarker templates used in old Search setting page.
PenghaiZhang May 4, 2020
9cf7538
Remove Sections, extensions and the module used in old Search setting…
PenghaiZhang May 4, 2020
f2b6966
Remove configurations related to the old Search setting from plugin-jpf
PenghaiZhang May 4, 2020
e4339a8
Remove plugin "com.tle.web.search" and its usage.
PenghaiZhang May 4, 2020
7f0c9d9
Merge branch 'develop' into component/search_configuration
edalex-ian May 4, 2020
e25c611
chore: add JS/TS headers
edalex-ian May 4, 2020
35427a0
#821 initial code for 3LO auth
cbeach47 Jan 6, 2020
6375803
Three legged authentication for Blackboard. (Incomplete)
ddelblanco Feb 21, 2020
d82f3f7
#821 - part way through 3LO changes
cbeach47 Mar 26, 2020
3eda0c1
Merge pull request #1693 from PenghaiZhang/feature/remove-old-search-…
PenghaiZhang May 4, 2020
fff94f3
Merge branch 'develop' into component/search_configuration
edalex-ian May 4, 2020
e3c5989
Add route to Faceted search setting page.
PenghaiZhang May 6, 2020
23a4fe5
Create a new page for managing Faceted search classifications. The main
PenghaiZhang May 6, 2020
7e71489
Add REST endpoints to support creating, updating and deleting multiple
PenghaiZhang May 7, 2020
825e5dc
Update package-lock for jest-config.
PenghaiZhang May 7, 2020
e389e6f
Merge pull request #1710 from PenghaiZhang/feature/rest-endpoints-for…
PenghaiZhang May 7, 2020
f700ff6
Merge branch 'component/search_configuration' into feature/faceted-se…
PenghaiZhang May 7, 2020
6911cdb
Remove the subtitle of MessageDialog;
PenghaiZhang May 8, 2020
ed006ff
Use flags to indicate if classifications need saving;
PenghaiZhang May 8, 2020
2c75a5b
Reduce verbosity of variable names and rename properly;
PenghaiZhang May 8, 2020
8365a61
Simplify the construction an objecot of facet.
PenghaiZhang May 8, 2020
843c2e1
chore: Remove Intellij typescript compiler setup
edalex-ian May 10, 2020
f5cf5a6
Add initial shell of a JS oEQ REST API library
edalex-ian May 10, 2020
3d4bb17
Type Axios.get for CurrentUserDetails
edalex-ian May 10, 2020
70525ae
Merge branch 'develop' into component/search_configuration
PenghaiZhang May 10, 2020
64e9ad6
Merge branch 'component/search_configuration' into feature/faceted-se…
PenghaiZhang May 10, 2020
59db42f
Move the list of facets to a const so improve readability;
PenghaiZhang May 11, 2020
fb036c5
The 'field' passed in 'validateFacetFields' must be a string so remove
PenghaiZhang May 11, 2020
060af42
In MUI ListItem, just use 'divider' instead of 'divider={true}'.
PenghaiZhang May 11, 2020
b2239dc
Merge pull request #1706 from PenghaiZhang/feature/faceted-search-cla…
PenghaiZhang May 11, 2020
ec53588
Add support for Settings REST endpoints
edalex-ian May 11, 2020
13b4e09
doc: Add details around the implementation of the js module
edalex-ian May 11, 2020
dc46187
oeq-ts-rest-api: Remove codegen building in build pipeline
edalex-ian May 11, 2020
dc3989e
oeq-ts-rest-api: Change GeneralSettings to singular
edalex-ian May 11, 2020
9be2483
Refactor SettingsPage and UISettingsEditor to use oeq-ts-rest-api
edalex-ian May 11, 2020
b8a2f2d
Incorporate oeq-ts-rest-api into build pipeline
edalex-ian May 11, 2020
14c095d
oeq-ts-rest-api: Use PUT for logout
edalex-ian May 11, 2020
1b9ec7e
Run `npm run format:ts`
edalex-ian May 11, 2020
7ca12d6
Update oeq-ts-rest-api/README.md
edalex-ian May 11, 2020
3599b39
Update oeq-ts-rest-api/README.md
edalex-ian May 11, 2020
616fa8f
Remove commented out template from oeq-ts-rest-api/jest.config.js
edalex-ian May 11, 2020
3cbf68c
Add newline at end of oeq-ts-rest-api/test/TestConfig.ts
edalex-ian May 11, 2020
c5963d6
Add new line at end of oeq-ts-rest-api/src/index.ts
edalex-ian May 11, 2020
81f8590
Use a namespace for the new REST JS Module
edalex-ian May 11, 2020
6128cab
Merge branch 'feature/js-oeq-api' of github.com:edalex-ian/openEQUELL…
edalex-ian May 11, 2020
6239a03
Add functionality of editing and deleting facets to Facet setting page;
PenghaiZhang May 12, 2020
28b5c7b
oeq-rest-client: Convert build to using rollup directly
edalex-ian May 12, 2020
86a8d08
Add a story for FacetDialog;
PenghaiZhang May 12, 2020
95b75e8
oeq-ts-rest-api: Add runtime type checking
edalex-ian May 12, 2020
9ec2061
Update oeq-ts-rest-api/README.md
edalex-ian May 12, 2020
dd49f96
oeq-ts-rest-api: Update README to better reflect new non-TSDX setup.
edalex-ian May 12, 2020
d1ad18d
oeq-ts-rest-api: Add npm run format
edalex-ian May 12, 2020
7188873
oeq-ts-rest-api: fix typos in test descriptions
edalex-ian May 12, 2020
353b09b
Remove commented out use of cancel token
edalex-ian May 12, 2020
d9d035c
Update core/js/package-lock.json to reflect REST client updates
edalex-ian May 12, 2020
de1c38f
oeq-ts-rest-api: remove husky
edalex-ian May 12, 2020
ff4c0b9
oeq-ts-rest-api: Also output CommonJS module
edalex-ian May 13, 2020
85c23da
Add newline to oeq-ts-rest-api/src/LegacyContent.ts
edalex-ian May 13, 2020
338bb91
Remove unnecessary regenerator-runtime/runtime.js import
edalex-ian May 13, 2020
44d960c
Update core/js/package-lock.json to match REST Client module
edalex-ian May 13, 2020
2a7db3b
oeq-ts-rest-api: Remove Rollup JSON plugin
edalex-ian May 13, 2020
b27a820
oeq-ts-rest-api: Remove Rollup CommonJS plugin
edalex-ian May 13, 2020
7791982
Merge pull request #1722 from edalex-ian/feature/js-oeq-api
edalex-ian May 13, 2020
739b485
Add a Jest test for Faceted search setting page.
PenghaiZhang May 13, 2020
438e4d8
Address MUI warnings caused by MessageDialog.
PenghaiZhang May 13, 2020
7dbd08b
build: removes esModuleInterop
ChristianMurphy May 13, 2020
5405469
chore: upgrade typescript version to 3.9.2
ChristianMurphy May 13, 2020
56aeaff
Add a helper text for category number in FacetDialog.
PenghaiZhang May 14, 2020
8fe3779
Reword comments and test descriptions.
PenghaiZhang May 14, 2020
528c4a2
Merge pull request #1729 from ChristianMurphy/component/refactor-buil…
ChristianMurphy May 14, 2020
d840fa8
Merge pull request #1730 from ChristianMurphy/chore/upgrade-typescript
ChristianMurphy May 14, 2020
50f2ad6
Remove redundant 'describe' from the Jest jest of Facet setting page;
PenghaiZhang May 14, 2020
4ce88da
Tidy up FacetedSearchSettingsPage, including:
PenghaiZhang May 14, 2020
cc55aee
Update the key of each ListItem.
PenghaiZhang May 14, 2020
2650fed
oeq-ts-rest-api: Add support for getting schemas
edalex-ian May 14, 2020
6499f81
oeq-ts-rest-api: Add jsDoc for getSchema
edalex-ian May 14, 2020
cde893a
oeq-ts-rest-api: Remove unused code
edalex-ian May 14, 2020
261ff6f
oeq-ts-rest-api: Add test for schema not found, improve ApiError
edalex-ian May 14, 2020
8cbfecc
chore: Unpin NPM deps for oeq-ts-rest-api (#1727)
edalex-ian May 14, 2020
9b1f37f
oeq-ts-rest-api: Change params argument to optional on listSchemas
edalex-ian May 15, 2020
f28daef
Merge pull request #1728 from PenghaiZhang/feature/edit-and-delete-fa…
PenghaiZhang May 15, 2020
68a4b43
Merge pull request #1734 from edalex-ian/feature/rest-client_schema-e…
edalex-ian May 15, 2020
c43be3d
Add new SchemaModule.ts for schema interactions
edalex-ian May 15, 2020
9533910
Merge pull request #1737 from edalex-ian/feature/schema_module
edalex-ian May 15, 2020
8650611
SchemaModule.ts: Add function to get a schema
edalex-ian May 15, 2020
0eac41c
Add tests for SchemaModule.ts
edalex-ian May 16, 2020
cab5405
Add function to generate node paths from SchemaNodes
edalex-ian May 16, 2020
80de0c1
test: upgrade to jest 26
ChristianMurphy May 13, 2020
e1f9489
Update 'react-beautiful-dnd' to the latest version.
PenghaiZhang May 18, 2020
da1c3e1
Implement the functionality of reordering facets.
PenghaiZhang May 18, 2020
0be93c5
Make sure the Jest test of FacetedSearchSettingsPage works properly with
PenghaiZhang May 18, 2020
d0505e9
Merge pull request #1741 from edalex-ian/feature/schema_module-retrie…
edalex-ian May 18, 2020
3402c45
Should pin the version of 'react-beautiful-dnd'.
PenghaiZhang May 19, 2020
1f1a0a4
Simplify the function 'reorder', including:
PenghaiZhang May 19, 2020
b1101bf
In the Jest test of FacetedSearchSettings, add tests for functions 'r…
PenghaiZhang May 19, 2020
5aa6b9a
test: check tests with eslint jest
ChristianMurphy May 19, 2020
cd50e38
Merge pull request #1731 from ChristianMurphy/test/jest-26
ChristianMurphy May 19, 2020
6aa946f
#821 Bb 3LO and various REST enhancements
cbeach47 May 22, 2020
18aef17
Reword the descriptions of the Jest test of Faceted search setting page;
PenghaiZhang May 22, 2020
6fe9fc3
In the Jest test of Facet search setting, as we know the testing IDs …
PenghaiZhang May 22, 2020
0c6743c
Merge branch 'component/search_configuration' into feature/reorder-fa…
PenghaiZhang May 22, 2020
a2496db
update package-lock.json for 'react-beautiful-dnd'.
PenghaiZhang May 22, 2020
058a396
Merge pull request #1743 from PenghaiZhang/feature/reorder-facets
PenghaiZhang May 22, 2020
c2368e5
Replace the testing url for ItemSummaryTest.
PenghaiZhang May 22, 2020
cf467d8
In ItemSummaryTest, check if Google page is opened by its Search button.
PenghaiZhang May 22, 2020
78f7228
#821 trival change to kick off formatting
cbeach47 May 22, 2020
9101949
#821 another trival change for testing local hooks
cbeach47 May 22, 2020
a6f1638
#821 code formatting
cbeach47 May 22, 2020
7f88a2c
test: add check license step for front end license checking
ChristianMurphy May 22, 2020
8fca6d0
test: include unlicense in approved list
ChristianMurphy May 25, 2020
1ee5de7
Revert "Update vanilla institution to support the new test"
SammyIsConfused May 25, 2020
df7c8da
Merge pull request #1757 from PenghaiZhang/bugfix/make-ItemSummaryTes…
PenghaiZhang May 25, 2020
eed28ea
Only modify the necessary files within vanilla institution to work th…
SammyIsConfused May 25, 2020
9650f80
Simplify the test
SammyIsConfused May 25, 2020
015b3cd
Add new annotation MaxRetryCount
SammyIsConfused May 25, 2020
0acdccc
Add new RetryAnalyzer and TestAnnotationTransformer
SammyIsConfused May 25, 2020
3cceb67
Add retry listener to textng.xml
SammyIsConfused May 25, 2020
795bce7
Add retries to VisibilityScriptingBugTest.java
SammyIsConfused May 25, 2020
ae9cc2b
Set default vanilla institution UI mode to false
SammyIsConfused May 25, 2020
7e74796
Merge pull request #1758 from ChristianMurphy/test/check-front-end-li…
ChristianMurphy May 25, 2020
2380bca
Add back items and acls related to DRMPrivilegeTest
SammyIsConfused May 25, 2020
c64d70a
Use slf4j rather than standard logger
SammyIsConfused May 25, 2020
66dc390
Rename MaxRetryCount.java annotation to RetryTest.java
SammyIsConfused May 25, 2020
30a4670
Remove currentRetry reset
SammyIsConfused May 25, 2020
9bed610
Handle RetryTest(0) as an annotation
SammyIsConfused May 25, 2020
4256f59
Merge branch 'develop' into component/search_configuration
PenghaiZhang May 25, 2020
b948ac7
Update package-lock.json for 'react-beautiful-dnd'
PenghaiZhang May 25, 2020
4de0eb3
Add back resources in vanilla institution required for other tests
SammyIsConfused May 26, 2020
9540bd4
Merge pull request #1760 from openequella/component/search_configuration
PenghaiZhang May 26, 2020
b0aa921
Merge pull request #1759 from SammyIsConfused/bugfix/visibility_scrip…
SammyIsConfused May 26, 2020
5991284
#819 - Course caching WIP
cbeach47 May 26, 2020
bfd9be6
Update Node.js to v12.17.0
renovate-bot May 26, 2020
9ec3a33
chore: Removed unused NPM `test` dependency
edalex-ian May 27, 2020
b9a5a94
Merge pull request #1763 from edalex-ian/chore/remove_unused_dependency
edalex-ian May 27, 2020
1b1d97c
ci: upgrade github cache action to version 2
ChristianMurphy May 28, 2020
91e2eac
Merge pull request #1749 from SammyIsConfused/bugfix/canvas_bug_worka…
SammyIsConfused May 22, 2020
c43f82b
Fix package-lock.json
SammyIsConfused May 28, 2020
8674b65
Explicitly import @material-ui/styles
SammyIsConfused May 28, 2020
c456fef
Revert "Explicitly import @material-ui/styles"
SammyIsConfused May 28, 2020
2781b2e
Update all instances of @material-ui/styles to use @material-ui/core/…
SammyIsConfused May 28, 2020
51ca636
Merge pull request #1766 from ChristianMurphy/ci/github-cache-2
ChristianMurphy May 28, 2020
64b1494
test: ignore known issue packages
ChristianMurphy May 28, 2020
031f058
Merge pull request #1767 from ChristianMurphy/test/ignore-known-packages
ChristianMurphy May 28, 2020
9be884b
#819 - Courses now cache
cbeach47 May 28, 2020
7c093f3
Merge pull request #1768 from openequella/bugfix/explicitly_import_st…
SammyIsConfused May 28, 2020
0e20a07
chore: chnage version strategy for tough cookie
ChristianMurphy May 29, 2020
d84019b
Merge pull request #1774 from ChristianMurphy/nojira/renovate-change-…
ChristianMurphy May 29, 2020
3e5cce6
fix(deps): update dependency tinymce to v5.2.2 [security]
renovate-bot May 31, 2020
d047390
Merge pull request #1723 from openequella/renovate/npm-tinymce-vulner…
SammyIsConfused Jun 1, 2020
205347c
chore(deps): update dependency @types/lodash to v4.14.154
renovate-bot Jun 1, 2020
c801b36
chore(deps): update dependency @babel/core to v7.10.2
renovate-bot Jun 1, 2020
fd0ad01
chore(deps): update dependency @types/react-autosuggest to v9.3.14
renovate-bot Jun 1, 2020
73f83d3
#821 initial code for 3LO auth
cbeach47 Jan 6, 2020
86209de
Three legged authentication for Blackboard. (Incomplete)
ddelblanco Feb 21, 2020
ca21ce0
#821 - part way through 3LO changes
cbeach47 Mar 26, 2020
2c15926
#821 Bb 3LO and various REST enhancements
cbeach47 May 22, 2020
100eafa
#821 trival change to kick off formatting
cbeach47 May 22, 2020
6d98abe
#821 another trival change for testing local hooks
cbeach47 May 22, 2020
14c8be8
#821 code formatting
cbeach47 May 22, 2020
55f8442
#819 - Course caching WIP
cbeach47 May 26, 2020
61e2a92
#819 - Courses now cache
cbeach47 May 28, 2020
ef2114e
Merge branch 'feature/821-bb-rest-3lo' of github.com:cbeach47/openEQU…
cbeach47 Jun 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ jobs:
- uses: actions/checkout@v2

- name: NPM Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-

- name: SBT Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
restore-keys: |
${{ runner.os }}-sbt-

- name: Ivy Cache
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.16.3
12.17.0
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branches:
- /^release\/.+/
- /^stable-.+/
- /^travis\/.+/
- component/search_configuration
env:
global:
### AWS START ###
Expand Down
27 changes: 27 additions & 0 deletions Dev/docs/restendpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,30 @@ public class TestResource {
}
}
```
## Batch operations

If a REST request contains multiple resources, then the successful response code should be 207, which provides status
and messages for multiple independent operations.

The response body is a list of JSON data in below structure

```json

[{
"id": "2daeba28-ce4e-48d5-9de8-149be32f09c9",
"status": 200,
"message": "A new filter has been created. ID: 2daeba28-ce4e-48d5-9de8-149be32f09c9"
},
{
"id": "2daeba28-ce4e-48d5-9de8-149be32f0929",
"status": 400,
"message": "Filter name cannot be empty."
}
]

```
For each operation, the result should be represented by this structure. The Scala case class 'ApiBatchOperationResponse'
has been created for this purpose.

In client-side, 'BatchOperationResponse.ts' has been created to help read the data. Also, the function
'groupErrorMessages' can help retrieve non-2xx status and their messages.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package com.tle.common.settings.standard;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.tle.common.settings.ConfigurationProperties;
import com.tle.common.settings.annotation.Property;
import com.tle.common.settings.annotation.PropertyDataList;
Expand Down Expand Up @@ -55,6 +56,12 @@ public class SearchSettings implements ConfigurationProperties {
@Property(key = "search.disableVideos")
private boolean searchingDisableVideos;

@Property(key = "search.disableOwnerFilter")
private boolean searchingDisableOwnerFilter;

@Property(key = "search.disableDateModifiedFilter")
private boolean searchingDisableDateModifiedFilter;

@Property(key = "gallery.filecount.disabled")
private boolean fileCountDisabled;

Expand All @@ -73,6 +80,10 @@ public class SearchSettings implements ConfigurationProperties {
@Property(key = "search.defaultsort")
private String defaultSearchSort;

// The REST endpoints for this was split into two - one for general search settings,
// and one for filters - so we don't want this included in the general search
// settings.
@JsonIgnore
@PropertyDataList(key = SEARCH + ".filters", type = SearchFilter.class)
private final List<SearchFilter> filters =
new ArrayList<SearchFilter>() {
Expand Down Expand Up @@ -221,4 +232,20 @@ public boolean isFileCountDisabled() {
public void setFileCountDisabled(boolean fileCountDisabled) {
this.fileCountDisabled = fileCountDisabled;
}

public boolean isSearchingDisableOwnerFilter() {
return searchingDisableOwnerFilter;
}

public void setSearchingDisableOwnerFilter(boolean searchingDisableOwnerFilter) {
this.searchingDisableOwnerFilter = searchingDisableOwnerFilter;
}

public boolean isSearchingDisableDateModifiedFilter() {
return searchingDisableDateModifiedFilter;
}

public void setSearchingDisableDateModifiedFilter(boolean searchingDisableDateModifiedFilter) {
this.searchingDisableDateModifiedFilter = searchingDisableDateModifiedFilter;
}
}
22 changes: 22 additions & 0 deletions Source/Plugins/Core/com.equella.core/js/.licensee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"licenses": {
"spdx": [
"0BSD",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"MIT",
"Unlicense"
]
},
"ignore": [
{
"prefix": "oeq-cloudproviders"
},
{
"prefix": "tinymce"
}
],
"corrections": false
}
195 changes: 195 additions & 0 deletions Source/Plugins/Core/com.equella.core/js/__mocks__/getSchemaUuidResp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
exports.getSchemaUuidResp = {
uuid: "f028746b-0346-fe7e-a223-a2db1240140c",
name: "CAL Guide Schema",
nameStrings: {
en: "CAL Guide Schema",
},
description:
"testing the creation of a CAL schema as demonstrated by the CAL configuration guide",
descriptionStrings: {
en:
"testing the creation of a CAL schema as demonstrated by the CAL configuration guide",
},
modifiedDate: "2014-04-04T12:56:52.870+11:00",
createdDate: "2012-03-14T17:33:05.767+11:00",
owner: {
id: "adfcaf58-241b-4eca-9740-6a26d1c3dd58",
},
security: {
rules: [],
},
namePath: "/item/itembody/name",
descriptionPath: "/item/itembody/description",
definition: {
xml: {
item: {
itembody: {
name: {
_indexed: true,
_field: true,
_type: "text",
},
description: {
_indexed: true,
_type: "text",
},
},
copyright: {
"@parenttype": {
_nested: true,
_type: "text",
},
issue: {
type: {
_indexed: true,
_type: "text",
},
value: {
_indexed: true,
_type: "text",
},
},
"@type": {
_nested: true,
_type: "text",
},
isbn: {
_indexed: true,
_field: true,
_type: "text",
},
abstract: {
_indexed: true,
_type: "text",
},
title: {
_indexed: true,
_field: true,
_type: "text",
},
volume: {
_indexed: true,
_type: "text",
},
pages: {
_type: "text",
},
issn: {
_indexed: true,
_field: true,
_type: "text",
},
publication: {
year: {
_type: "text",
},
place: {
_indexed: true,
_field: true,
_type: "text",
},
},
publisher: {
_type: "text",
},
editors: {
editor: {
_indexed: true,
_field: true,
_type: "text",
},
},
authors: {
author: {
_indexed: true,
_field: true,
_type: "text",
},
},
portions: {
portion: {
number: {
_type: "text",
},
topics: {
topic: {
_indexed: true,
_type: "text",
},
},
abstract: {
_indexed: true,
_type: "text",
},
title: {
_indexed: true,
_field: true,
_type: "text",
},
sections: {
section: {
copyrightstatus: {
_type: "text",
},
pages: {
_type: "text",
},
attachment: {
_type: "text",
},
illustration: {
_type: "text",
},
type: {
_type: "text",
},
},
},
authors: {
author: {
_indexed: true,
_field: true,
_type: "text",
},
},
},
},
},
},
},
},
citations: [
{
name: "Harvard",
transformation: "harvard.xsl",
},
],
exportTransformsMap: {},
importTransformsMap: {
"Z39.50 to Book": "MODS_z3950_to_book-20071212-1.xslt",
},
ownerUuid: "adfcaf58-241b-4eca-9740-6a26d1c3dd58",
serializedDefinition:
'<xml><item><copyright><type attribute="true" type="text"/><parenttype attribute="true" type="text"/><title field="true" search="true" type="text"/><abstract search="true" type="text"/><isbn field="true" search="true" type="text"/><authors><author field="true" search="true" type="text"/></authors><editors><editor field="true" search="true" type="text"/></editors><issn field="true" search="true" type="text"/><issue><type search="true" type="text"/><value search="true" type="text"/></issue><volume search="true" type="text"/><publisher type="text"/><publication><year type="text"/><place field="true" search="true" type="text"/></publication><pages type="text"/><portions><portion><title field="true" search="true" type="text"/><authors><author field="true" search="true" type="text"/></authors><abstract search="true" type="text"/><number type="text"/><topics><topic search="true" type="text"/></topics><sections><section><pages type="text"/><attachment type="text"/><type type="text"/><copyrightstatus type="text"/><illustration type="text"/></section></sections></portion></portions></copyright><itembody><name field="true" search="true" type="text"/><description search="true" type="text"/></itembody></item></xml>',
links: {
self:
"http://localhost:8080/rest/api/schema/f028746b-0346-fe7e-a223-a2db1240140c",
},
};
Loading