-
Notifications
You must be signed in to change notification settings - Fork 15
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
[DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) #1207
[DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) #1207
Conversation
d0215b7
to
db9280d
Compare
3ed0070
to
500ba5b
Compare
c8672c0
to
39b451c
Compare
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.
Hey @AronPerez - I've reviewed your changes - here's some feedback:
Overall Comments:
- The path handling change in transfer-ui-manager.js (removal of endsWith check) appears to be a behavioral change. Please clarify if this is intentional and how it affects the directory path handling.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
Added a few comments/questions, and one concern.
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.
A positive contribution, adding first set of unit tests to the Frontend. I don't have any items that should be blocking for this PR if passing the CI. It would probably be a good idea to continute expand on the unit testing with some integration testing. One of the difficult parts of the current design is the different components are kind of tightly coupled. Perhaps it will make sense to put the api call pieces directly in some of the classes that are closely related at some point.
939f7f9
to
c99d09d
Compare
a23cc88
to
5dc8181
Compare
dbe7432
to
3679a4f
Compare
5dc8181
to
f939461
Compare
@sourcery-ai review |
Reviewer's Guide by SourceryThis PR adds unit tests for the Mapped Collection Endpoint Browse feature. It introduces Chai unit tests for the Class diagram for transfer components under testclassDiagram
class TransferDialogController {
+handleDialog()
}
class TransferEndpointManager {
+manageEndpoints()
}
class TransferUIManager {
+manageUI()
}
TransferDialogController --> TransferUIManager
TransferEndpointManager --> TransferUIManager
note for TransferDialogController "Unit tests added"
note for TransferEndpointManager "Unit tests added"
note for TransferUIManager "Unit tests added"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @AronPerez - I've reviewed your changes - here's some feedback:
Overall Comments:
- The PR includes empty test files (transfer-dialog-controller.test.js, transfer-endpoint-manager.test.js, transfer-ui-manager.test.js). Please implement the actual test cases before requesting review.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
@@ -18,7 +18,7 @@ jobs: | |||
# Step 3: Install Prettier and ESLint globally | |||
- name: Install Prettier | |||
run: | | |||
npm install -g prettier |
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.
Good catch.
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.
LGTM
22545fa
into
feat/DLT-1110/mapped-collection-endpoint-browse
…)" This reverts commit 22545fa.
This reverts commit 0a56039. Revert "Revert "[DLT-1110] Upgrade node v23 -> v18, better jump"" This reverts commit b57bd27. Revert "Revert "[DLT-1110] Upgrade node v14 -> v23"" This reverts commit 6e3cc52 Revert "[DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) (#1207)" This reverts commit 22545fa. Revert "[DLT-1110] Config" This reverts commit 82715f0. Revert "[DLT-1110] Upgrade node v14 -> v23" This reverts commit fb8b93d. Revert "[DLT-1110] Upgrade node v23 -> v18, better jump" This reverts commit 9d66847. Revert "[DLT-1110] Correct ver .sh file" This reverts commit 5c78c59. [DLT-1110] Correct ver .sh file [DLT-1110] Upgrade node v23 -> v18, better jump [DLT-1110] Upgrade node v14 -> v23 [DLT-1110] Config [DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) (#1207) * [DLT-1110] Add tests * [DLT-1110] Update chai with mocha, attempt usage of mock-import * [DLT-1110] Add mocha config, correct prettier * [DLT-1110] Update tests, correct logic * [DLT-1110] Update tests, add fixtures, update setup, lock in packages * [DLT-1110] Update test [DLT-1110] Update style [DLT-1110] Update if statements [DLT-1110] Dependency injection [DLT-1110] Fix update bug [DLT-1110] Pull out template HTML [DLT-1110] Correct HTML escape, francy tree init [DLT-1110] Add commnets to logic [DLT-1110] Update model, make logic private, remove controller form transfer request when update or get [DLT-1110] Split branches [DLT-1110] Update files with prettier [DLT-1110] Add controller unit tests [DLT-1110] Remove debug [DLT-1110] Correct import statements, endpoint list [DLT-1110] Refactor out into MVC [DLT-1110] Add debug [DLT-1110] Functioning modal, needs refactoring [DLT-1110] Refactor dlg start transfer using OOO programming. Should be MVC cased on what I'm seeing but we'll see
* [DLT-1110] Update style [DLT-1110] Update if statements [DLT-1110] Dependency injection [DLT-1110] Fix update bug [DLT-1110] Pull out template HTML [DLT-1110] Correct HTML escape, francy tree init [DLT-1110] Add commnets to logic [DLT-1110] Update model, make logic private, remove controller form transfer request when update or get [DLT-1110] Split branches [DLT-1110] Update files with prettier [DLT-1110] Add controller unit tests [DLT-1110] Remove debug [DLT-1110] Correct import statements, endpoint list [DLT-1110] Refactor out into MVC [DLT-1110] Add debug [DLT-1110] Functioning modal, needs refactoring [DLT-1110] Refactor dlg start transfer using OOO programming. Should be MVC cased on what I'm seeing but we'll see * [DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) (#1207) * [DLT-1110] Add tests * [DLT-1110] Update chai with mocha, attempt usage of mock-import * [DLT-1110] Add mocha config, correct prettier * [DLT-1110] Update tests, correct logic * [DLT-1110] Update tests, add fixtures, update setup, lock in packages * [DLT-1110] Update test * [DLT-1110] Config * [DLT-1110] Upgrade node v14 -> v23 * [DLT-1110] Upgrade node v23 -> v18, better jump * [DLT-1110] Correct ver .sh file * Revert "[DLT-1110] Correct ver .sh file" This reverts commit 5c78c59. * Revert "[DLT-1110] Upgrade node v23 -> v18, better jump" This reverts commit 9d66847. * Revert "[DLT-1110] Upgrade node v14 -> v23" This reverts commit fb8b93d. * Revert "[DLT-1110] Config" This reverts commit 82715f0. * Revert "[DLT-1110] Mapped Collection Endpoint Browse Tests (2/4) (#1207)" This reverts commit 22545fa.
* [DLT-1110] Add tests * [DLT-1110] Update chai with mocha, attempt usage of mock-import * [DLT-1110] Add mocha config, correct prettier * [DLT-1110] Update tests, correct logic * [DLT-1110] Update tests, add fixtures, update setup, lock in packages * [DLT-1110] Update test
PR Description
This PR adds Chai unit tests
Tasks
Summary by Sourcery
Tests: