instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
TEAMMATES__teammates__13499
TEAMMATES/teammates
13,499
defect
949530ec317219378edc12e171bd10b6f14eb871
5cc53f3fdf02fad21cda970ce141630d333db049
[#12048] Migrate axe tests
Part of #12048 Migrated the following Axe tests: - AdminAccountsPageAxeTest.java - AdminHomePageAxeTest.java - AdminNotificationsPageAxeTest.java - AdminSearchPageAxeTest.java - AdminSessionsPageAxeTest.java - AdminTimezonePageAxeTest.java - DevServerLoginPageAxeTest.java - FeedbackResultsPageAxeTest.java...
diff --git a/.github/workflows/axe-sql.yml b/.github/workflows/axe-sql.yml new file mode 100644 index 000000000000..05fda928283d --- /dev/null +++ b/.github/workflows/axe-sql.yml @@ -0,0 +1,54 @@ +name: Accessibility Tests (SQL) + +on: + push: + branches: + - master + - release + pull_request: + branc...
1
1
1
[{"id": "G0", "claim": "Some of the axe test classes added by this PR are missing from `testng-axe-sql.xml` and therefore never run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
TEAMMATES__teammates__13508
TEAMMATES/teammates
13,508
defect
273c148e8ee7759355927bf3e4e42a0d656bc4a0
9a5371d03b643ef559a4a17a6d7ca4676d0e580f
[#13503] Broken L&P and JDK 25 Component tests
Fixes #13503
diff --git a/src/test/java/teammates/common/util/TimeHelperTest.java b/src/test/java/teammates/common/util/TimeHelperTest.java index 9f9ca7035abb..6b9fcd4a86d5 100644 --- a/src/test/java/teammates/common/util/TimeHelperTest.java +++ b/src/test/java/teammates/common/util/TimeHelperTest.java @@ -35,10 +35,14 @@ public vo...
3
3
1
[{"id": "G0", "claim": "The 4:00 AM test case reuses the expected pattern containing \"04:00 PM\", which can never match an AM time; a separate expected pattern should be defined for the AM case.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "An inl...
null
TEAMMATES__teammates__13631
TEAMMATES/teammates
13,631
defect
321736c7f209eee3637b50bcd9e5a54040ad92ff
23539e6889cc75bb21d70b254503f6eeebd8c91f
[#11760] Decouple deadline extension from feedback session update request
Fixes #11760 **Outline of Solution** * Separated deadline extensions update request and feedback session update request. * Updating feedback session in one tab will not affect individual deadline extension updating on another tab. * Added tests for `UpdateFeedbackSessionDeadlineExtensionsAction` and `UpdateFeed...
diff --git a/src/main/java/teammates/common/util/Const.java b/src/main/java/teammates/common/util/Const.java index 0de5dfea7718..1415ebf6b0bc 100644 --- a/src/main/java/teammates/common/util/Const.java +++ b/src/main/java/teammates/common/util/Const.java @@ -362,6 +362,7 @@ public static class ResourceURIs { p...
11
10
4
[{"id": "G0", "claim": "The confirmExtensionCallbackEvent subscriber ignores the emitted isNotifyDeadlines boolean so the API call always uses the default false, making the notify-deadlines toggle ineffective in this flow.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
TEAMMATES__teammates__13633
TEAMMATES/teammates
13,633
defect
321736c7f209eee3637b50bcd9e5a54040ad92ff
3c5492f61586393b2950631cbadccb71c5796737
[#13634] Remove Admin/Maintainer Logs
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/process.html#step-4-submit-a-pr. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!--...
diff --git a/src/main/java/teammates/common/util/Const.java b/src/main/java/teammates/common/util/Const.java index 0de5dfea7718..b79b23fc5882 100644 --- a/src/main/java/teammates/common/util/Const.java +++ b/src/main/java/teammates/common/util/Const.java @@ -385,7 +385,6 @@ public static class ResourceURIs { p...
4
3
2
[{"id": "G0", "claim": "The sample stack trace in logsForLocalDev.json references GetFeedbackSessionLogsAction.parseSeverities(...), a method that class does not have, which makes the local-dev sample logs misleading and harder to debug; update the frames to real methods/classes or generic placeholders.", "category": "...
null
TEAMMATES__teammates__13687
TEAMMATES/teammates
13,687
defect
b04110fef6f6abaa92ce14c323c4a7728953b89f
5707726cbc167242f21141d75daa62a1bea6f904
[#13471] Notifications page: Add Mark All as Read button
Fixes #13471 **What this PR does:** This PR introduces the "Mark All as Read" functionality in the user notifications list. **Implementation details:** * **Frontend-only solution:** Reused the existing `markNotificationAsRead` API endpoint. No backend or database changes were required. * **Optimistic UI:** W...
diff --git a/src/web/app/components/user-notifications-list/user-notifications-list.component.html b/src/web/app/components/user-notifications-list/user-notifications-list.component.html index 0fc50943c494..2be5a76c8a2d 100644 --- a/src/web/app/components/user-notifications-list/user-notifications-list.component.html +...
7
7
5
[{"id": "G0", "claim": "The empty-state alert is now shown whenever there are no unread notifications (`!hasUnreadNotifications`), so the message 'There are no active notifications.' appears even when active but already-read notifications exist; either restore the `notificationTabs.length === 0` condition or update the...
null
TEAMMATES__teammates__13689
TEAMMATES/teammates
13,689
defect
cf1d25bff7a3790dd740142e4223f4ddede3320f
e1d4c60200c5c6c678c22e199234f62c07b50fcd
[#13441] Enforce uniqueness constraint for read notifications
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/process.html#step-4-submit-a-pr. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!--...
diff --git a/src/main/java/teammates/sqllogic/core/AccountsLogic.java b/src/main/java/teammates/sqllogic/core/AccountsLogic.java index 74bc4af732bb..a0ae55bdcf84 100644 --- a/src/main/java/teammates/sqllogic/core/AccountsLogic.java +++ b/src/main/java/teammates/sqllogic/core/AccountsLogic.java @@ -1,7 +1,9 @@ package ...
7
6
3
[{"id": "G0", "claim": "The duplicate guard in AccountsLogic.updateReadNotifications is ineffective because ReadNotification.equals/hashCode compare only by the randomly generated id, so duplicates can still be added to account.readNotifications and returned; check duplicates by notificationId (or (accountId, notificat...
null
TEAMMATES__teammates__13690
TEAMMATES/teammates
13,690
defect
b04110fef6f6abaa92ce14c323c4a7728953b89f
a1b21d4cfda55b1d0ab244d45fdee08696ad98fc
[#13644] Remove GAE Dependence for Cron Jobs
Fixes #13644 Remove GAE dependence for Cron Jobs. Address Samuel's feedback on PR #13658
diff --git a/docs/cron-setup.md b/docs/cron-setup.md index 77cc3e7fe328..7850558dbaac 100644 --- a/docs/cron-setup.md +++ b/docs/cron-setup.md @@ -14,11 +14,11 @@ Configure this header in your scheduler. The secret is set in `build.properties` ## Timezone -All schedules below use **Asia/Singapore**. Configure your...
3
3
1
[{"id": "G0", "claim": "The class `InternalRequestAuth` should be renamed (per the naming comment carried over from the previous PR) instead of keeping its current name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`LocalTaskQueueService` is n...
null
TEAMMATES__teammates__13727
TEAMMATES/teammates
13,727
defect
86ec21c225d881ddb0301227a327d57a421ebaa7
d8ef03e735222936e8d00ce6b56c3a88f96f0dbc
[#12774] Fix feedback sessions not fetched by deadline extensions
Fixes #12774 There was a mismatch in fetching behavior between a single `FeedbackSession` and multiple `FeedbackSessions`. Single `FeedbackSession` takes the student's deadline extensions into consideration whereas the latter does not. **Outline of Solution** * Updated `GetFeedbackSessionsAction` to match beh...
diff --git a/src/main/java/teammates/ui/output/FeedbackSessionsData.java b/src/main/java/teammates/ui/output/FeedbackSessionsData.java index 0161e1b4bd78..f844f7526f1e 100644 --- a/src/main/java/teammates/ui/output/FeedbackSessionsData.java +++ b/src/main/java/teammates/ui/output/FeedbackSessionsData.java @@ -1,6 +1,8 ...
2
1
0
[{"id": "G0", "claim": "Hoist the duplicated `responseData = new FeedbackSessionsData(sessionToDeadline);` out of the if-else branch so the same line is not written twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Giving the generated instr...
null
TEAMMATES__teammates__13778
TEAMMATES/teammates
13,778
defect
0b73bd3337787f755def4c14399b0d87c4b4f738
75f20988f0ff9e47fa66ef3977f731cda33b0e07
[#13777] Dynamically generated MCQ/MSQ options are persisted resulting in duplicates
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java b/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java index a4be837a97d4..fe4f9b72f059 100644 --- a/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java +++ b/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java @@ -162,29 +162,6 @@ publ...
7
5
2
[{"id": "G0", "claim": "The code does not distinguish 'dynamic generation not applicable' (generateOptionsFor == NONE) from 'applicable but generated list is empty', so a present Optional wrapping an empty list can overwrite the question's existing MCQ/MSQ choices and break validation for non-dynamic questions, while a...
null
TEAMMATES__teammates__13783
TEAMMATES/teammates
13,783
defect
aa04a4010bf12a2edb8c66d0f0b516c710edf55d
a58f4307e3ec5d922d9ef2ab92eac14d51ada754
[#13586] Fix student edit form accepts whitespaces in team field
**Problem:** "Edit Student Details" page (instructor-view) allowed Team Names to be updated to whitespace-only characters. **Our Approach:** 1. Frontend validation - Angular's Validator is used on the edit form logic input, but it allowed whitespace to pass, so we added a custom validator to check for whitespace ...
diff --git a/src/main/java/teammates/ui/webapi/UpdateStudentAction.java b/src/main/java/teammates/ui/webapi/UpdateStudentAction.java index 549384c8cb62..f48787c7a156 100644 --- a/src/main/java/teammates/ui/webapi/UpdateStudentAction.java +++ b/src/main/java/teammates/ui/webapi/UpdateStudentAction.java @@ -76,10 +76,13 ...
5
5
2
[{"id": "G0", "claim": "The whitespace-only team name validation should be done in StudentUpdateRequest.java, the layer that handles request body validation, instead of inline in UpdateStudentAction.execute().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
TEAMMATES__teammates__13805
TEAMMATES/teammates
13,805
defect
c208fcd8a9821e8b3a2708a81371c4e22dfacd1b
c7dc37fa6c2e5ee7291331f4e15dd78f650ccb8a
[#13738] Migrate Restore and Delete Feedback Session Action to use feedbackSessionId
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java b/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java index 96011ff473e9..02f7879eba36 100644 --- a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java +++ b/src/it/java/teammates/it/sqllogic/core/FeedbackSe...
11
5
3
[{"id": "G0", "claim": "checkSpecificAccessControl in DeleteFeedbackSessionAction dereferences the session returned by getFeedbackSession without a null check, so an invalid/unknown fsid causes an NPE instead of a controlled error; add an explicit null check and throw before using feedbackSession.", "category": "correc...
null
TEAMMATES__teammates__13807
TEAMMATES/teammates
13,807
defect
b612d82c3bb53580d7a10739c577db756b295ac3
f031e877d21cb994c7baef40ad3ef00aad804142
[#13738] Migrate publish and unpublish session actions to use feedbackSessionId
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java b/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java index 02f7879eba36..e854a7740d24 100644 --- a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java +++ b/src/it/java/teammates/it/sqllogic/core/FeedbackSe...
3
2
2
[{"id": "G0", "claim": "Mapping the InvalidParametersException raised for already-published/unpublished state conflicts to InvalidHttpParameterException returns 400 and misclassifies the error; the reviewer asks to throw InvalidOperationException (or an equivalent state-conflict exception) instead for this path.", "cat...
null
TEAMMATES__teammates__13811
TEAMMATES/teammates
13,811
defect
3034627da21d44901c6e6f80d0d9d0a9eeb0d5ea
691637afac0ada9626ad08942a771141d72ac1e7
[#13738] Migrate Update Feedback Session action to use feedbackSessionId
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java b/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java index 31a4ad29b38c..1e87081c30fe 100644 --- a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java +++ b/src/it/java/teammates/it/sqllogic/core/FeedbackSe...
2
2
1
[{"id": "G0", "claim": "The TODO comment's reference to UpdateFeedbackSessionAction is misleading since the timing validation logic was moved to FeedbackSessionsLogic, and should point to the new logic-layer validation method (or the reference be removed).", "category": "documentation", "verdict": "supported", "priorit...
null
TEAMMATES__teammates__13812
TEAMMATES/teammates
13,812
defect
89cfd78fc0bc0bab8f5ac2ac3bae32be049a0f97
631b7ac44b88c32500a0bc1ba47d1ebae6c1ce91
[#13721] Remove isOpenedEmailEnabled from FeedbackSession Entity
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/client/resources/SeedingDatabundle.json b/src/client/resources/SeedingDatabundle.json index c2e48d190501..51d2fae4b096 100644 --- a/src/client/resources/SeedingDatabundle.json +++ b/src/client/resources/SeedingDatabundle.json @@ -985,7 +985,6 @@ "sessionVisibleFromTime": "seed.d(-17)T08:00:00Z",...
3
1
0
[{"id": "G0", "claim": "The toString() output has no delimiter between gracePeriod and isClosingSoonEmailEnabled after removing isOpenedEmailEnabled, producing concatenated text like 'gracePeriod=PT5MisClosingSoonEmailEnabled=', and the missing \", \" should be restored for readable logs.", "category": "correctness", "...
null
TEAMMATES__teammates__13826
TEAMMATES/teammates
13,826
defect
7d9144f0df1981156a5b8ddc42ca21961e4a4cf4
55f5279ac41bfc354ba9969ee0155ca7c87d9b23
[#13738] Migrate Giver Set and Response Stats Actions to use feedbackSessionId
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java b/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java index 9e29cb166fb8..280437387a01 100644 --- a/src/it/java/teammates/it/sqllogic/core/FeedbackSessionsLogicIT.java +++ b/src/it/java/teammates/it/sqllogic/core/FeedbackSe...
3
1
0
[{"id": "G0", "claim": "Because the migrated actions now parse FEEDBACK_SESSION_ID as a UUID, the invalid-params tests should also cover a non-UUID string value (e.g. \"not-a-uuid\") to verify that an InvalidHttpParameterException is thrown for malformed fsid values, not just missing/null params.", "category": "testing...
null
TEAMMATES__teammates__13863
TEAMMATES/teammates
13,863
defect
15564020593647f1d470909103cc83d5218211f9
26e1841d6a792946e17b78eda08d6083a34cae46
[#13860] Add configuration option to enable sending emails to test domain
Fixes #13860 Currently EmailSender.java always blocks emails to test/demo domains. This adds a configurable flag so developers can enable email delivery to test domains in local development environments while preserving the existing blocking behaviour in production. ## Changes Made - Added `ALLOW_EMAILS_TO_TE...
diff --git a/src/main/java/teammates/common/util/Config.java b/src/main/java/teammates/common/util/Config.java index edb28f0ad42c..6990523b76b8 100644 --- a/src/main/java/teammates/common/util/Config.java +++ b/src/main/java/teammates/common/util/Config.java @@ -152,6 +152,12 @@ public final class Config { /** Val...
7
7
3
[{"id": "G0", "claim": "The allow.emails.to.test.domain property and its comment can be safely deleted from build.template.properties because production must never send emails to test domains and will just default to false.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
TEAMMATES__teammates__13864
TEAMMATES/teammates
13,864
defect
ab456a987d24001318b9f2628581387e01502cd0
1d16aa31bbea6feac8daa65fcba85d181b3ddcb9
[#13853] Migrate midnight adjustment logic to frontend
Fixes part of #13853. What this PR does / why we need it: As mentioned in the issue, shifting the 00:00 timestamp to 23:59 is really a presentation concern and belongs in the frontend. This PR tackles the Feedback Sessions part of the migration. It cleans up the backend so it only deals with raw UTC timestamps and ...
diff --git a/package-lock.json b/package-lock.json index d02e1bbd27bb..bedf403b0310 100644 --- a/package-lock.json +++ b/package-lock.json @@ -475,6 +475,7 @@ "integrity": "sha512-gfadsLK3SxbGpZQMSJGr8RK65R2mZi/VmHXdztXQHATvMpy+00CX1Nu3n+lPTxOVbC73aIczUkUbIuRC1HBCqg==", "dev": true, "license": "MIT...
3
1
0
[{"id": "G0", "claim": "The `timeZone` parameter of the `DeadlineExtensionsData` constructor is now unused after the midnight-adjustment removal and should be removed, with call sites updated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The c...
null
TEAMMATES__teammates__13874
TEAMMATES/teammates
13,874
defect
45e4ae3def42b8937b5a1d9cee27a7ea2090bc27
7875b09636780160c56b168c50563ed18b7a2b51
[#13721] Remove update methods in Db layer
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/storage/sqlapi/AccountRequestsDbIT.java b/src/it/java/teammates/it/storage/sqlapi/AccountRequestsDbIT.java index 2de619af9bd6..aa8601a942b5 100644 --- a/src/it/java/teammates/it/storage/sqlapi/AccountRequestsDbIT.java +++ b/src/it/java/teammates/it/storage/sqlapi/AccountRequestsDbI...
2
2
1
[{"id": "G0", "claim": "updateFeedbackResponseCascade no longer persists the updated FeedbackResponse: since FeedbackResponse.updateResponse(...) typically passes a detached entity, returning it without attaching/updating the managed instance means the response changes may not be saved; the reviewer asks to either merg...
null
TEAMMATES__teammates__13875
TEAMMATES/teammates
13,875
defect
4ff3a5059c987e2a9995012c575bb75cdf245858
7af9544140412000e24d914564baf6e2483858fc
[#13721] Move validation to logic layer
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java b/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java index 2686e787ed4c..df15b7ee3f8e 100644 --- a/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java +++ b/src/it/java/teammates/it/storage/sqlapi/CoursesDbIT.java @@ -4,7 +4,6 @@ import...
2
1
1
[{"id": "G0", "claim": "The new logic-layer create methods (createInstructor, createStudent, createFeedbackResponse, createFeedbackQuestion, createFeedbackResponseComment, createCourse, createAccountRequest) call validate*(entity) and dereference the entity without first asserting/checking it is non-null, so a null inp...
null
TEAMMATES__teammates__13877
TEAMMATES/teammates
13,877
defect
15564020593647f1d470909103cc83d5218211f9
4377836d03fda66ed43901547acccc68f8e102a7
[#13721] Rework equals method in entities
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/e2e/java/teammates/e2e/cases/InstructorCoursesPageE2ETest.java b/src/e2e/java/teammates/e2e/cases/InstructorCoursesPageE2ETest.java index 43ac1506a7d4..0b553233bf79 100644 --- a/src/e2e/java/teammates/e2e/cases/InstructorCoursesPageE2ETest.java +++ b/src/e2e/java/teammates/e2e/cases/InstructorCoursesPa...
8
3
3
[{"id": "G0", "claim": "Statically importing both org.mockito.ArgumentMatchers.any and org.mockito.Mockito.any in CreateFeedbackResponseCommentActionTest is an ambiguous duplicate import and one of them should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
TEAMMATES__teammates__13892
TEAMMATES/teammates
13,892
defect
1de3ebcca80d556fdbb06bed10702df94f2eafa4
d02e391fa3dec5f26138e90f71827f711ea64165
[#13653] Add instructor and student name and email in admin accounts page
Fixes #13653 **Outline of Solution** * Modify `Account` entity to associate with students and instructors. * Modify `GetAccount` API endpoint to fetch associated students and instructors. * Add missing alert bar for no instructors. * Remove methods for masquerade mode. * Update `admin-accounts-page` instructo...
diff --git a/src/main/java/teammates/common/util/Const.java b/src/main/java/teammates/common/util/Const.java index 7ba231e0b9df..360afee307ac 100644 --- a/src/main/java/teammates/common/util/Const.java +++ b/src/main/java/teammates/common/util/Const.java @@ -326,6 +326,7 @@ public static class ResourceURIs { p...
6
5
4
[{"id": "G0", "claim": "Move course name and institute into the default (entity-derived) StudentData/InstructorData output and make them non-nullable instead of adding them via the addCourseInfo() variant, so all API outputs stay consistent with minimal permutations.", "category": "design", "verdict": "supported", "pri...
null
TEAMMATES__teammates__13896
TEAMMATES/teammates
13,896
defect
9215f01328568c05feec77cbf5cb2c85b5d340d8
197cb86ec8882eb2aefc16993a5f54767ecdcc6b
[#13865] Simplify GetAuthInfoAction to return a single login url
Fixes #13865 **Outline of Solution** - Refactor AuthInfo.java to replace the four distinct login URLs with a single, dynamic loginUrl. - Add a default no-argument constructor to AuthInfo.java to handle the unauthenticated/no-redirect state. This prevents dummy data generation and keeps the API response semanticall...
diff --git a/src/main/java/teammates/ui/output/AuthInfo.java b/src/main/java/teammates/ui/output/AuthInfo.java index 91f78627ccea..ae01868d8349 100644 --- a/src/main/java/teammates/ui/output/AuthInfo.java +++ b/src/main/java/teammates/ui/output/AuthInfo.java @@ -10,49 +10,31 @@ public class AuthInfo extends ApiOutput ...
6
5
2
[{"id": "G0", "claim": "AuthInfo's loginUrl should be a non-nullable field and the action should always return a loginUrl, since it is application configuration rather than authentication state.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Only one con...
null
TEAMMATES__teammates__13930
TEAMMATES/teammates
13,930
defect
b017c8ac637d404c7a03a13738964bcf4c4ca8a3
1d5c19c86f7386257949b1dc7c61191e5cc30723
[#13721] Refactor fetching of feedback session comments
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/storage/api/FeedbackResponseCommentsDbIT.java b/src/it/java/teammates/it/storage/api/FeedbackResponseCommentsDbIT.java index 38e6db92d326..0071aa094a4b 100644 --- a/src/it/java/teammates/it/storage/api/FeedbackResponseCommentsDbIT.java +++ b/src/it/java/teammates/it/storage/api/Fee...
2
1
0
[{"id": "G0", "claim": "The new test introduces a hard-coded UUID literal in the feedbackResponseIds list instead of a named or existing constant, which is inconsistent with the rest of the test class and hurts readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "...
null
TEAMMATES__teammates__13949
TEAMMATES/teammates
13,949
defect
6fbcaa9a3fe722a2ea18763b0487a7101bdfa7c1
1bed78ffcedd310fa34e499a65ec83293eef14bb
[#13708] Remove unnecessary manual cascade deletes and standardise cascade delete behaviour
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/logic/core/DataBundleLogicIT.java b/src/it/java/teammates/it/logic/core/DataBundleLogicIT.java index 3745a1af2711..5572da36e1a5 100644 --- a/src/it/java/teammates/it/logic/core/DataBundleLogicIT.java +++ b/src/it/java/teammates/it/logic/core/DataBundleLogicIT.java @@ -286,6 +286,9 ...
2
2
2
[{"id": "G0", "claim": "The type-level @OnDelete on the Student and Instructor entity classes is at best a no-op and may not compile depending on the annotation target, so it should be removed and, if needed, placed on the specific association fields, since the students.id/instructors.id -> users.id DB FK already carri...
null
TEAMMATES__teammates__13950
TEAMMATES/teammates
13,950
defect
6fbcaa9a3fe722a2ea18763b0487a7101bdfa7c1
1b0908286c990a26315dccaa44e7425152925af7
[#13925] Make EmailSenderTest more extensible
Fixes #13925 **Outline of Solution** Add a testing seam to decouple the test suite from the static configuration evaluation, eliminating a brittle mocking pattern. - Add a package-private @VisibleForTesting constructor to EmailSender that accepts an EmailSenderService parameter. - Refactor EmailSenderTest to ...
diff --git a/src/main/java/teammates/logic/api/EmailSender.java b/src/main/java/teammates/logic/api/EmailSender.java index 21aa666d4cc7..e58b7ecad774 100644 --- a/src/main/java/teammates/logic/api/EmailSender.java +++ b/src/main/java/teammates/logic/api/EmailSender.java @@ -2,6 +2,8 @@ import org.apache.http.HttpSta...
2
1
0
[{"id": "G0", "claim": "EmailSender should drop the singleton pattern in favour of dependency injection (possibly keeping a factory method that builds an instance with default values from config) so it is testable without the Config-driven singleton.", "category": "design", "verdict": "opposed", "priority": "P2", "scop...
null
TEAMMATES__teammates__13951
TEAMMATES/teammates
13,951
defect
6192acbc3914e66869734e5987e59977fbb5ec41
59ce06b26c5aaf2c7c0ee8e19c88f37a964b4fc7
[#13926] Add explicit user and team associations to comment giver
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/client/resources/SeedingDatabundle.json b/src/client/resources/SeedingDatabundle.json index a6df644e7c0e..2e9b3c59856c 100644 --- a/src/client/resources/SeedingDatabundle.json +++ b/src/client/resources/SeedingDatabundle.json @@ -2872,12 +2872,10 @@ "feedbackResponseComments": { "comment1ToResp...
3
2
1
[{"id": "G0", "claim": "After the new last_edited_by_* foreign keys use ON DELETE SET NULL, lastEditedBy can be null, and code that dereferences it unconditionally (FeedbackResponseCommentData constructor and SessionResultsData.buildComments when the giver is visible) can fail with a null pointer when rendering comment...
null
TEAMMATES__teammates__13954
TEAMMATES/teammates
13,954
defect
b60786dc21452bf9d9b6b942f907904673805e27
4b47cb74515bea2f05db6f9b9b440fe98aacf24a
[#13953] Remove isUser and isInstructor from AuthContext
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/it/java/teammates/it/ui/webapi/BaseActionIT.java b/src/it/java/teammates/it/ui/webapi/BaseActionIT.java index c2a4b048966d..05a9c2878b41 100644 --- a/src/it/java/teammates/it/ui/webapi/BaseActionIT.java +++ b/src/it/java/teammates/it/ui/webapi/BaseActionIT.java @@ -20,6 +20,7 @@ import teammates.commo...
4
1
1
[{"id": "G0", "claim": "verifyStudentInAnyCourse does not null-check its account parameter and, when logic.getAccountForGoogleId returns null, throws a NullPointerException instead of a clean UnauthorizedAccessException; add the same account != null guard used in verifyInstructorInAnyCourse.", "category": "correctness"...
null
TEAMMATES__teammates__13978
TEAMMATES/teammates
13,978
defect
b7272a1bc5726b6c33255c42fc6b57036ef8bb91
9302509cfaefcad28a54d1e2f4cbd819733c8f34
[#13721] Clean up submit response related methods
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/main/java/teammates/common/datatransfer/FeedbackQuestionRecipient.java b/src/main/java/teammates/common/datatransfer/FeedbackQuestionRecipient.java deleted file mode 100644 index 33d56ee64d53..000000000000 --- a/src/main/java/teammates/common/datatransfer/FeedbackQuestionRecipient.java +++ /dev/null @@...
3
1
1
[{"id": "G0", "claim": "Making FeedbackQuestionRecipient.section and .team required will break existing TS mocks/fixtures (e.g. session-submission-page.component.spec.ts) that omit them; either update the call sites or keep the fields optional.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
TEAMMATES__teammates__13980
TEAMMATES/teammates
13,980
defect
3ef463fe1c85ace936575b37217571d4c378e41b
505e0eaf3123b4c100f649fdab4e169cf5946268
[#13979] Rename user related param constants
<!-- Before opening a PR, please ensure you have read our contributor guidelines --> <!-- at https://teammates.github.io/teammates/contributing/guidelines.html. --> <!-- PR title: Copy-and-paste the name of the issue this PR is fixing, --> <!-- and include the issue number in front in square brackets. --> <!-- e....
diff --git a/src/e2e/java/teammates/e2e/cases/AdminSearchPageE2ETest.java b/src/e2e/java/teammates/e2e/cases/AdminSearchPageE2ETest.java index 5ef4bdb4b92c..f6d9b5afe30b 100644 --- a/src/e2e/java/teammates/e2e/cases/AdminSearchPageE2ETest.java +++ b/src/e2e/java/teammates/e2e/cases/AdminSearchPageE2ETest.java @@ -225,7...
2
2
0
[{"id": "G0", "claim": "Rename the form model field/interface `studentId` to `userId` (and update the template) because `selectedStudent.studentId` actually holds `Student.userId` but is now passed as `userId` to the logs API, causing confusion between natural IDs and UUID userId.", "category": "maintainability", "verd...
null
THU-MAIC__OpenMAIC__229
THU-MAIC/OpenMAIC
229
defect
ddb52241fb445cceec7bcdd3060a8ce78936600f
fc1754b30ca78480cd5fcf66364d307349e23ccf
test: add Playwright e2e testing framework with core scenario coverage
Closes #230 ## Summary - Set up Playwright e2e testing infrastructure (`playwright.config.ts`, fixtures, Page Object Models) - Implement `MockApi` class using `page.route()` to intercept API calls with fixture data (zero source code invasion) - Add 3 test specs covering the main happy-path user flow: - **home-to-gen...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0085cbaba..37be68075e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,3 +37,31 @@ jobs: - name: Unit Tests run: pnpm test + + e2e: + name: E2E Tests + runs-on: ubuntu-latest + steps: + - ...
7
5
1
[{"id": "G0", "claim": "The assertion `await expect(page.getByRole('heading', { name: '光反应' })).toBeVisible()` will likely fail at runtime because the classroom page and scene sidebar render the current scene title as a plain span, not a heading element.", "category": "testing", "verdict": "opposed", "priority": "P1", ...
null
THU-MAIC__OpenMAIC__418
THU-MAIC/OpenMAIC
418
defect
c071e02d8376a21ecc5c500791fb2ef00ba25ea0
58d2d16107a26465ae4cdad62bb5031f38c8cac7
feat: classroom export and import (ZIP) (#408)
## Summary - Export a full classroom as `.maic.zip` containing course structure JSON + TTS audio + generated media - Import on another device via home page button — lightweight sharing without server-side storage - All IDs regenerated on import (no conflicts, multiple imports create independent copies) - Lenient versi...
diff --git a/app/page.tsx b/app/page.tsx index 1799ea97e9..13257745ce 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -18,6 +18,7 @@ import { Monitor, BotOff, ChevronUp, + Upload, } from 'lucide-react'; import { useI18n } from '@/lib/hooks/use-i18n'; import { LanguageSwitcher } from '@/components/language-...
8
7
3
[{"id": "G0", "claim": "`require('../../../package.json')` in lib/export/use-export-classroom.ts resolves above the project root from lib/export/, and should use `../../package.json` or, better, `process.env.npm_package_version` / a build-time constant.", "category": "correctness", "verdict": "supported", "priority": "...
null
THU-MAIC__OpenMAIC__474
THU-MAIC/OpenMAIC
474
defect
f40c92f1aa11a1281f46f8ba0359b1eda64a5b2f
4148926dd7f69842cfdb67677dee20a2ec97a505
fix(generation): unify languageDirective across outline + scene pipeline (#472)
Fixes #472. ## Summary `languageDirective` was dropped, renamed, or hardcoded at several points in the scene generation pipeline, silently degrading prompt-level language control. Slide paths survived because their fallback happened to hint requirement-language behavior; widget paths degraded to `zh-CN` default — the...
diff --git a/lib/generation/scene-builder.ts b/lib/generation/scene-builder.ts index c6da1edbd0..98eb0c48f6 100644 --- a/lib/generation/scene-builder.ts +++ b/lib/generation/scene-builder.ts @@ -115,6 +115,7 @@ export async function buildSceneFromOutline( ctx, agents, userProfile, + languageDirective:...
4
4
2
[{"id": "G0", "claim": "The test file has no widget-path coverage: none of the 5 widget content prompts (simulation/diagram/code/game/visualization3d) nor widget-teacher-actions are tested, so a future refactor could silently re-break the exact path issue #472 was filed for; the reviewer suggests one test setting outli...
null
THUDM__CogDL__228
THUDM/CogDL
228
defect
1dec0dddf9e2103f578ad2170cedc12ee76769f6
968d5f547bbca3ad519651b732487daad17dbbc3
[WIP] New Interface for Encoding Paper
## Description <!-- Brief description. Refer to the related issues if existed.--> ## Checklist Please feel free to remove inapplicable items for your PR. - [ ] The PR title starts with [$CATEGORY] (such as [Model], [Doc], [Feature], [Bugfix]) - [ ] Changes are complete (i.e. I finished coding on this PR) - [ ] ...
diff --git a/cogdl/oag/README.md b/cogdl/oag/README.md index a6131f5a..bd2332a0 100644 --- a/cogdl/oag/README.md +++ b/cogdl/oag/README.md @@ -45,6 +45,22 @@ sequence_output, pooled_output = model.bert.forward( position_ids_second=torch.LongTensor(position_ids_second).unsqueeze(0) ) ``` +If you want to encode va...
5
5
2
[{"id": "G0", "claim": "The pull request should not re-indent the parameters of print_oag_instance; keep the original formatting/indent settings.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code in encode_paper is redundant and should be ...
null
TIBCOSoftware__flogo-lib__100
TIBCOSoftware/flogo-lib
100
defect
ccbf9960cc04cfa1216ca68efc304b230be4a1cf
3e373e8d04a026cc68425ab73550cd0ce9c46026
Support new resolver syntax
Support new syntax on input mapper and branch conditions: New format explained here: http://confluence.tibco.com/display/FLOGO/Architecture#Architecture-ExpressionSyntaxProposal This solution is backward compatible with old format.
diff --git a/core/activity/activity.go b/core/activity/activity.go index e8ea54a..f9138ba 100644 --- a/core/activity/activity.go +++ b/core/activity/activity.go @@ -1,5 +1,7 @@ package activity + + // Activity is an interface for defining a custom Task Execution type Activity interface { diff --git a/core/activi...
1
1
0
[{"id": "G0", "claim": "The activity-resolution test expressions are misleading: '${activity.myMapAttribute.myMapKey}' should include the activity's name, and it is unclear whether the nested form '${activity.myattr.nestedValue}' is meant to resolve to the attribute or to a specific nested value as in the old '${A1.mya...
null
TIBCOSoftware__flogo-lib__200
TIBCOSoftware/flogo-lib
200
defect
7ba0fc08f4d79fcd821f6aee6326d1348a728cf2
3be6afd32b70f04f78818089e340acfdc223b6d8
Adding support for extensible secret value resolution
**What kind of change does this PR introduce?** (check one with "x") ``` [] Bugfix [x] Feature [] Code style update (formatting, local variables) [] Refactoring (no functional changes, no api changes) [] Other... Please describe: ``` **Fixes**: # **What is the current behavior?** Secret values must be pro...
diff --git a/config/config.go b/config/config.go index 6650790..0842b03 100644 --- a/config/config.go +++ b/config/config.go @@ -14,6 +14,8 @@ const ( ENV_APP_CONFIG_LOCATION_KEY = "FLOGO_CONFIG_PATH" APP_CONFIG_LOCATION_DEFAULT = "flogo.json" ENV_STOP_ENGINE_ON_ERROR_KEY = "FLOGO_ENGINE_STOP_ON_ERROR" + ENV_DA...
1
1
0
[{"id": "G0", "claim": "The default secret key constant should be named DATA_SECRET_KEY_DEFAULT rather than ENV_DATA_SECRET_KEY_DEFAULT.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TIGER-AI-Lab__verl-tool__31
TIGER-AI-Lab/verl-tool
31
defect
ed5299af996de277ca38a47152ae77ef3863179a
30480e0ecb0ca467fcd7da0a941a38a93e655977
0425 zhiheng wiki rl debug
Fix some misalign with main branch during training
diff --git a/verl_tool/agent_workers/reward_manager/wikiRL.py b/verl_tool/agent_workers/reward_manager/wikiRL.py index 38b88181..476ced99 100644 --- a/verl_tool/agent_workers/reward_manager/wikiRL.py +++ b/verl_tool/agent_workers/reward_manager/wikiRL.py @@ -16,7 +16,7 @@ from mini_webarena.rl_utils import format_scor...
3
1
0
[{"id": "G0", "claim": "Remove or clarify the commented-out debug `# exit(1)` line in send_batch_requests to prevent confusion during production runs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ensure that 'extra_fields' is always JSON-seria...
null
TIGER-AI-Lab__verl-tool__68
TIGER-AI-Lab/verl-tool
68
defect
494aa3b05141d8420083143aac0b926a14028f1d
33cf58f82c49827c9f51d4a01c47ddad49ea927c
feat: implemented and tested Google/SERP search tool
Implemented both Google Search Tool and SERP-API based search tool and test scripts. Added detailed instruction of how to use and deploy search tools in README.md Output from test cases (left: SERP, right: Google API): <img width="1169" alt="image" src="https://github.com/user-attachments/assets/78a5cf8e-651e...
diff --git a/verl_tool/servers/README.md b/verl_tool/servers/README.md index dd466b36..542d15bc 100644 --- a/verl_tool/servers/README.md +++ b/verl_tool/servers/README.md @@ -35,12 +35,138 @@ To test the tool server, we provide a list of corresponding test scripts in the python -m verl_tool.servers.tests.test_python_c...
1
1
0
[{"id": "G0", "claim": "Add the google search tool's additional dependencies to pyproject.toml as an extra so people can directly install them with `pip install -e .[google_search]`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TNG__ArchUnit__1096
TNG/ArchUnit
1,096
defect
4ef8299e715a0a3618a155a82e3699371d41d110
f62237e062f6d2c4f45a39934deb2ebd2d38b766
Fix missing try-catch-blocks in lambdas
With #847 we have changed the way lambdas are handled. Before ArchUnit didn't have any special handling for lambdas which lead to synthetic methods (like `lambda$foo$123`) being imported like regular methods and connections like `call() -> doSomething()` in the following example would be lost: ``` void call() { ...
diff --git a/archunit-integration-test/src/test/java/com/tngtech/archunit/PublicAPIRules.java b/archunit-integration-test/src/test/java/com/tngtech/archunit/PublicAPIRules.java index 75616ba841..a603cd278d 100644 --- a/archunit-integration-test/src/test/java/com/tngtech/archunit/PublicAPIRules.java +++ b/archunit-integ...
1
1
0
[{"id": "G0", "claim": "The Assertions.java change (removal of assertThatTryCatchBlocks) currently placed in the commit 'make processing of raw try-catch-blocks consistent with other imports' would better fit in the commit 'remove obsolete class TryCatchBlocksAssertion'.", "category": "process", "verdict": "supported",...
null
TNG__ArchUnit__1184
TNG/ArchUnit
1,184
defect
be71e10be18abd0c207c93b8353b563cabc4fd72
e3ed562a574dd4c79c730bc0490c37b64ba1e66b
ignore unknown components in dependencies of PlantUML diagrams
The current implementation prevents using PlantUML diagrams as rules that are used for wider documentation purposes (e.g. containing a database component or some other dependency that's irrelevant from the point of an ArchUnit test). The consequence of ignoring such unknown components is only to allow fewer depend...
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/plantuml/rules/PlantUmlComponents.java b/archunit/src/main/java/com/tngtech/archunit/library/plantuml/rules/PlantUmlComponents.java index 2056d901e7..461e950df6 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/plantuml/rules/PlantUmlCompon...
6
6
1
[{"id": "G0", "claim": "The Optional-returning method findComponentWith should be named tryFindComponentWith, following the project's naming pattern for methods that return an Optional.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new log....
null
TNG__ArchUnit__1203
TNG/ArchUnit
1,203
defect
789706f07b605fb2404d877052ac583b2b77a501
a6fdc9d7ca56f1e796f1c959ddc75a5e17bb9244
fix importing inner class using string concat of outer field
We weren't aware that the compiler occasionally generates synthetic `access$123` methods that call constructors. More precisely for the following constellation ``` class Outer { String field = ""; class Inner { void concat() { field += "any"; } } } ``` the compiler generates bytecode inst...
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/importer/ClassFileImportRecord.java b/archunit/src/main/java/com/tngtech/archunit/core/importer/ClassFileImportRecord.java index 0df029f4fd..f82699dd4f 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/importer/ClassFileImportRecord.java +++ b/ar...
3
2
0
[{"id": "G0", "claim": "The new test's JavaDoc should correct the `=+` typo to `+=` and weaken \"the compiler creates\" to \"the compiler may create\", since not all compilers (e.g. openjdk-17.0.2) create a synthetic `access$123` method in this case.", "category": "documentation", "verdict": "supported", "priority": "P...
null
TNG__ArchUnit__1226
TNG/ArchUnit
1,226
defect
a4ea3f8557819cd622d43380e4d87fed84425859
7d5dc1504053f933d8fe1640647edb64e8036d32
fix `OnionArchitecture` losing `optionalLayers` after `as`
The `OnionArchitecture.as(..)` method (and transitively `because(..)`) didn't pass the `optionalLayers` property along when creating a `new OnionArchitecture(..)` on return. Thus, once a test called `as(..)` or `because(..)` on the rule text `optionalLayers` would be reset to `false`. Resolves: #1185
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java b/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java index d62b98641d..1d6b22139a 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java +++ b/archunit/src/main/java/com/tngtech/archunit/...
1
1
0
[{"id": "G0", "claim": "The as() override fails to copy allClassesAreContainedInArchitectureCheck to the new OnionArchitecture instance, so the ensure-all-classes-contained check is lost when the rule's description is overridden.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_exist...
null
TNG__ArchUnit__1276
TNG/ArchUnit
1,276
defect
7e9750db086988e2730d1ebe02d0e4d427e78b05
af4f38eedbb37a7db33be130350a34e96f92766f
fix `getAllInvolvedRawTypes()` recursing infinitely
This fixes the problem of recursing infinitely when calling `JavaType.getAllInvolvedRawTypes()` for a recursive type parameter declaration (e.g. `class Example<T extends Example<T>>`). It also adds a new public API to conveniently traverse `JavaType` signatures without the need to add chains of `instanceof` checks a...
diff --git a/NOTICE b/NOTICE index 9ae20482e5..645da63af7 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ ArchUnit -Copyright 2016 and onwards Peter Gafert <peter.gafert@tngtech.com> +Copyright 2016 and onwards Peter Gafert <peter.gafert@archunit.org> This product includes software developed at TNG Technology Con...
7
6
4
[{"id": "G0", "claim": "The new data provider for imported array types should also include multi-dimensional arrays.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The traversal tests cannot distinguish visitClass from visitArrayType, since an implement...
null
TNG__ArchUnit__1277
TNG/ArchUnit
1,277
defect
b7d9dd5fafab470b57b1ec181c6930891d9ac64a
be3f3be179e0a455dfe50c67c872e077ff0e8121
fix `@ArchIgnore` not being fully respected by JUnit 4 support
In the case of inheritance we were looking at the wrong class for an `@ArchIgnore`. I.e. rule declarations in base classes would only be ignored if the base class was annotated with `@ArchIgnore`, not the actual class. We now check the actual class for the annotation instead. If the base class is annotated with `@ArchI...
diff --git a/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/internal/ArchRuleDeclaration.java b/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/internal/ArchRuleDeclaration.java index 0a9e700cba..15b32ba87f 100644 --- a/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/intern...
1
1
0
[{"id": "G0", "claim": "The new test should use the existing `newRunnerFor` helper instead of directly constructing `ArchUnitRunnerInternal`, eliminating the need to declare `throws InitializationError`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TNG__ArchUnit__1279
TNG/ArchUnit
1,279
defect
b7d9dd5fafab470b57b1ec181c6930891d9ac64a
fa822f55caa7ae075d37f58ea636d0c2bf14bada
make tests included via `ArchTests` report outer class as test location
So far, if we include rules from other test classes, e.g. ``` @AnalyzeClasses(..) class ExampleTest {   @ArchTest   static final ArchTests nested = ArchTests.in(Other.class); } ``` then the included class (`Other.class` in this case) will be used as test location. This can cause confusion, because by this if `...
diff --git a/archunit-junit/junit4/build.gradle b/archunit-junit/junit4/build.gradle index 894575fac4..b9dabb1e86 100644 --- a/archunit-junit/junit4/build.gradle +++ b/archunit-junit/junit4/build.gradle @@ -40,10 +40,6 @@ sourcesJar { } } -archUnitTest { - hasSlowTests = true -} - shadowJar { exclude '...
4
2
0
[{"id": "G0", "claim": "The method `findArchRulesIn` could be renamed to `findArchTestsIn` (offered as a suggestion block).", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new assertions in `should_find_children_in_rule_set` (and likewise in ...
null
TNG__ArchUnit__1280
TNG/ArchUnit
1,280
defect
b7d9dd5fafab470b57b1ec181c6930891d9ac64a
ac95237faa3c3a97b1b9ed8618dd9eeec574c00c
support executing single `@ArchTest` members
Currently there is no convenient way to execute a single `@ArchTest` rule of a test running with JUnit 4 or 5 support. As a simple mitigation we now provide the possibility to filter a single test via `archunit.properties` / system property. This change allows to e.g. pass ``` -Darchunit.junit.testFilter=rule_field...
diff --git a/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/internal/ArchRuleExecution.java b/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/internal/ArchRuleExecution.java index 2f68e09b4b..f48f97db3e 100644 --- a/archunit-junit/junit4/src/main/java/com/tngtech/archunit/junit/internal/A...
3
2
0
[{"id": "G0", "claim": "The test should also set a filter name for a rule that does not exist (e.g. \"non-existing-rule\") to show that filtering does not break anything.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the docs, the sentence introduci...
null
TNG__ArchUnit__1294
TNG/ArchUnit
1,294
defect
1cce0116ffb01b963bb2129aec89144c02cfd12a
105bc09b269cab8c0ca68fe1b65a0bb786976f49
run tests with JUnit Platform
To pave the way to migrate to JUnit 5 we now switch the build to use the JUnit Platform runner by switching to `useJUnitPlatform {..}` in our Gradle build files. This doesn't effectively change much on the surface, because we still keep all JUnit 4 annotations and test infrastructure. But it now runs our JUnit 4 tes...
diff --git a/archunit-example/example-junit4/build.gradle b/archunit-example/example-junit4/build.gradle index 9e3c9aea43..cc015b33bf 100644 --- a/archunit-example/example-junit4/build.gradle +++ b/archunit-example/example-junit4/build.gradle @@ -14,8 +14,8 @@ dependencies { } test { - if (!project.hasProperty('...
3
2
0
[{"id": "G0", "claim": "In `compileClassesFrom` the filter could be simplified to `it.toString().endsWith(\".java\")` instead of `it.getFileName().toString().endsWith(\".java\")`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `fileNamePredi...
null
TNG__ArchUnit__1368
TNG/ArchUnit
1,368
defect
f8f80de626125db852dc1349188e68669a8b2acc
28c2894f0ccee2e776022e1770619b0886aa4d73
improve rule to not fail for classes with no tests in their packages
This will improve the existing rule to test that test classes reside in the same package as their implementation. In particular the rule: Should not fail if there are multiple test classes with the same simple name and some of the classes have no tests at all Issue: #1367
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java b/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java index ee6cbb6813..f78b0e9c47 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java +++ b/archunit/src/main/java/com/tn...
3
2
2
[{"id": "G0", "claim": "The new test class should be renamed (to a name whose simple name occurs in several packages, e.g. SimpleNameThatOccursInSeveralPackages) so the test actually covers the use case of #1367 and would fail with the old implementation.", "category": "testing", "verdict": "supported", "priority": "P1...
null
TNG__ArchUnit__1385
TNG/ArchUnit
1,385
defect
070c786d684996d7b3ab18d034dde554f1c50307
1e7bcde4a4aa5dd60379004aaae2fac158879690
General Coding rule to detect usages of old time and date classes (#1384 / #1385)
Update: Provided commit message ``` General coding rule to detect usages of old time and date classes (#1384 / #1385) With this commit new general rules are added which detect the usages of old time and date classes, e.g. java.util.Date. closes #1384 ``` ------------------- I would like to provide ...
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java b/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java index 03af68e14e..52a4b02ada 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java +++ b/archunit/src/main/java/com/tn...
2
2
0
[{"id": "G0", "claim": "Using the same text in as() and because() duplicates it in the final rule description, so the suggested distinct texts (.as(\"java.time API should be used\") / .because(\"legacy date/time APIs have been replaced since Java 8 (JSR 310)\")) should be used instead.", "category": "design", "verdict"...
null
TNG__ArchUnit__273
TNG/ArchUnit
273
defect
aeac69a1761645dfd38768a1f78905d7b6e7e9d1
1ee5fdbdd597621ba278fef446ba90b226773a84
Allow empty layers in LayeredArchitecture & OnionArchitecture when configured
Resolves #267 & #271: After #177 had prevented empty layers by default, this can now be overridden to re-allow empty layers in `LayeredArchitecture` & `OnionArchitecture`.
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java b/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java index 4004292820..273fbfe696 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/Architectures.java +++ b/archunit/src/main/java/com/tngtech/archunit/...
2
2
0
[{"id": "G0", "claim": "The new data-provider tests for empty layers (layered and onion) with conditionals in the assertions are harder to read and maintain, and would be better written as separate explicit tests or with given/expected expressed in the data points.", "category": "maintainability", "verdict": "supported...
null
TNG__ArchUnit__287
TNG/ArchUnit
287
defect
2e6f1780f1a99148e355b1e0d836d183cb296ff1
97d70461ecd588a0b35fc21a51bff4a71e40ae1a
Feature/support meta annotations
This PR enhances `archunit-junit5-api` to support meta-annotations for `@ArchIgnore`, `@ArchTag` and `@ArchTags` (using JUnit 5's [AnnotationSupport](https://junit.org/junit5/docs/current/api/org/junit/platform/commons/support/AnnotationSupport.html)). I left `archunit-junit4` unchanged as JUnit 4 itself does not su...
diff --git a/archunit-junit/junit5/engine/src/main/java/com/tngtech/archunit/junit/AbstractArchUnitTestDescriptor.java b/archunit-junit/junit5/engine/src/main/java/com/tngtech/archunit/junit/AbstractArchUnitTestDescriptor.java index 8830cc6e76..f8e3cfaa4f 100644 --- a/archunit-junit/junit5/engine/src/main/java/com/tngt...
2
2
1
[{"id": "G0", "claim": "The skip-result lookup uses Optional.stream(), which was only added in JDK 9, so it would not work anymore in projects using JDK 8 and the change must be made to work with JDK 8.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": ...
null
TNG__ArchUnit__289
TNG/ArchUnit
289
defect
2e6f1780f1a99148e355b1e0d836d183cb296ff1
4ca8363d1e9853fb8ff8da24ec9236a5247ff64a
Add GeneralCodingRule to discourage use of field injection
Resolves #288
diff --git a/archunit/build.gradle b/archunit/build.gradle index 2a572498ef..a351a6d77f 100644 --- a/archunit/build.gradle +++ b/archunit/build.gradle @@ -18,6 +18,9 @@ dependencies { exclude module: 'assertj-core' exclude module: 'guava' } + testCompile dependency.springBeans + testCompile...
7
5
0
[{"id": "G0", "claim": "The public condition is misnamed `USE_FIELD_INJECTION`/`useFieldInjection` since technically it checks for injection annotations, and should be called `annotatedWithAnInjectionAnnotation` or similar.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
TNG__ArchUnit__344
TNG/ArchUnit
344
defect
20eac07b9d2bea956038ade3826d3bbc21b8484f
1cfbd8a1f349c0dd58e2b3f5da31b9beb32fb754
Use first line number from LineNumberTable for JavaCodeUnit's sourceCodeLocation
So far, the `sourceCodeLocation` of `JavaMember`s does not contain a line number, as it cannot reliably be inferred from the byte code (cf. #75). However, if the class file contains a [`LineNumberTable`](https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.12) for a method, using the smallest line...
diff --git a/archunit-integration-test/src/test/java/com/tngtech/archunit/integration/ExamplesIntegrationTest.java b/archunit-integration-test/src/test/java/com/tngtech/archunit/integration/ExamplesIntegrationTest.java index 86a39f9a21..a54f77ff21 100644 --- a/archunit-integration-test/src/test/java/com/tngtech/archuni...
2
2
0
[{"id": "G0", "claim": "The new withLineNumber method should be named so it reflects that it records a line number and keeps the minimum rather than simply adding a property like the other with-methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
TNG__ArchUnit__358
TNG/ArchUnit
358
defect
93b376712a22fbfaaff492dc310024c868e26d87
3a3d31daf2be28c44f48920b088dedb6ded63be3
Make all tests green on JDK 14
Let's make [#AllTestsGreenOnJDK14](https://twitter.com/mreinhold/status/1243214596854276097) 😉 @codecholeric: I saw that you started to release v0.14.0. It would be really cool to merge this PR before doing the actual release. You know, v0._14_.0 would be compatible with JDK _14_... 😅
diff --git a/archunit/src/jdk9main/java/com/tngtech/archunit/core/domain/Java9DomainPlugin.java b/archunit/src/jdk9main/java/com/tngtech/archunit/core/domain/Java9DomainPlugin.java index 5ed77359a2..387fb66010 100644 --- a/archunit/src/jdk9main/java/com/tngtech/archunit/core/domain/Java9DomainPlugin.java +++ b/archunit...
3
3
1
[{"id": "G0", "claim": "The PR should adopt the adjustment codecholeric already put on master (0d76ee22) so that the annotation formatting/assertion the PR introduces is applied to runtime annotations only.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
TNG__ArchUnit__392
TNG/ArchUnit
392
defect
38f6748c4e5d5758cfb3c6509aefb616cf83e475
f321e56ab9532227f4170b689eca27c472e27b3b
Add JavaClass.tryGetConstructor(..) methods
Before this commit, JavaClass had the methods * `getField(..)` and `tryGetField(..)` * `getMethod(..)` and `tryGetMethod(..)` * `getConstructor(..)` This PR adds the equivalent `tryGetConstructor(..)` methods. Resolves #386
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java b/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java index 5c7022d1e3..6390979543 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaClass.java +++ b/archunit/src/main/java/com/tngtech/archunit/...
1
1
0
[{"id": "G0", "claim": "Drop \"(the default constructor)\" from the Javadoc of the new getConstructor() and tryGetConstructor(), because it conflates the zero-parameter constructor with the implicit constructor JLS §8.8.9 adds in absence of explicit constructor declarations, which for inner classes actually has a param...
null
TNG__ArchUnit__408
TNG/ArchUnit
408
defect
8fdb631632f476f3426bcc3f351b926a944a122b
0145a155be684242c02075f0f36ae548ef9f5b85
Resolve transitive annotations
Often users are confused, why meta-annotations (like Spring's `@Component` on `@Service`) are not detected, because the original annotation has not been part of the import. So far if ArchUnit imported a class annotated with some annotation outside of the import context (e.g. a class in imported package `com.myapp` an...
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/domain/properties/CanBeAnnotated.java b/archunit/src/main/java/com/tngtech/archunit/core/domain/properties/CanBeAnnotated.java index ee76d27942..58014bf205 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/domain/properties/CanBeAnnotated.java ++...
11
10
3
[{"id": "G0", "claim": "The new cyclic-annotation test does not need the additional UnusedAnnotation helper annotation; a simple assertThat(javaClass.isMetaAnnotatedWith(AnnotationWithCyclicAnnotation.class)).isFalse() (or a standard annotation like @Deprecated) would also lead to the StackOverflowError.", "category": ...
null
TNG__ArchUnit__417
TNG/ArchUnit
417
defect
ae16a10b4488e721197836291aa751be06c6d35e
d0cfb0dc5b79fc63de9b579ca555e364e27c5bfb
Consider classes referenced in instanceof
Resolves: #371 moved changes to a feature branch as before issues arose that the pull request got closed when rebasing. original PR can be found here: https://github.com/TNG/ArchUnit/pull/383/ all comments have been addressed and marked as resolved
diff --git a/archunit-example/example-plain/src/main/java/com/tngtech/archunit/example/layers/persistence/second/dao/jpa/OtherJpa.java b/archunit-example/example-plain/src/main/java/com/tngtech/archunit/example/layers/persistence/second/dao/jpa/OtherJpa.java index 443c838092..d5fcea2fbc 100644 --- a/archunit-example/ex...
5
5
4
[{"id": "G0", "claim": "RawInstanceofCheck should not be a public API in the domain package since users never deal with it; the raw import data should reside in the importer package (e.g. rename TargetAtLine to RawInstanceofCheck and resolve the target via ImportedClasses), and the domain's package-private factory shou...
null
TNG__ArchUnit__428
TNG/ArchUnit
428
defect
a86e9a5259023697fccba165bb10e308ea5ee159
fe2fc090a96238d16ddea1f5d3b0ba3001745a14
Add component type of arrays to JavaClass dependencies #257
..damnit - wrong issue in the branch name 🤣 ## Summary This PR partly resolves #257 by adding the component type of arrays to the dependencies *from self* in `JavaClass`. The description of the `Dependency` currently reads as follows: ``` Field <com.tngtech.archunit.example.layers.service.ServiceType.$VALUES...
diff --git a/archunit-example/example-plain/src/test/resources/frozen/a81a2b54-5a18-4145-b544-7a580aba0425 b/archunit-example/example-plain/src/test/resources/frozen/a81a2b54-5a18-4145-b544-7a580aba0425 index 6420a7657c..23618c14f7 100644 --- a/archunit-example/example-plain/src/test/resources/frozen/a81a2b54-5a18-4145...
6
5
3
[{"id": "G0", "claim": "The pull request added the pre-existing SomeController/ServiceViolatingDaoRules violations to the frozen ViolationStore, which stops them from being reported and makes ExamplesIntegrationTest#FrozenRulesTest fail; it would have been sufficient to freeze only the new component-type violations.", ...
null
TNG__ArchUnit__501
TNG/ArchUnit
501
defect
0c6247b9cfb217323d882d9e2644e609aab4bdf9
4f792254a37bbe9863d4b5db20fadb8d5e0fdc6b
Support to target only Test classes
Sometimes it is useful to define rules about the tests them selves. Like each test class should not be public, it should have name ending with "Test" etc. This IncludeOption allows to target only test classes.
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java b/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java index 52de71cc2a..5ba5a52767 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java +++ b/archunit/src/main/java/com/tn...
3
3
2
[{"id": "G0", "claim": "The constant INCLUDED_PATTERN declared in OnlyTests is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The abstract class LocationPatternImportOption should not be public (i.e. reachable from ...
null
TNG__ArchUnit__624
TNG/ArchUnit
624
defect
2945d1499e05907bc0fcd09d845e7b8917acef80
ecd27c6e7fc36836cbf43ec536d4a14f08d293e1
Colored plantuml components
Add support for parsing colored components in `PlantUmlArchCondition`. Resolves #258
diff --git a/archunit-example/example-junit4/src/test/resources/com/tngtech/archunit/exampletest/junit4/shopping_example.puml b/archunit-example/example-junit4/src/test/resources/com/tngtech/archunit/exampletest/junit4/shopping_example.puml index 65e5109e77..bc51d691ed 100644 --- a/archunit-example/example-junit4/src/t...
1
1
0
[{"id": "G0", "claim": "The component model should not carry queryable color information, since no use case was identified; color awareness should be kept only in the component pattern (COLOR_FORMAT) to document it, without transferring colors into the model.", "category": "design", "verdict": "supported", "priority": ...
null
TNG__ArchUnit__774
TNG/ArchUnit
774
defect
502ecd53c6ab53c9798740586ae8fbfb5dc6f3f9
280d667f9fd84dce2311bee2880051f716bd5515
Verify that the rule input is not empty
The input for the should-part of a rule should normally not be empty, since then the test will always be green because it doesn't test anything. With this change, it is now possible to verify that the input of a rule is not empty. If the input is empty, an `AssertionError` is thrown. The verification if the input i...
diff --git a/.gitignore b/.gitignore index 2cb51f6eea..79fa2fb900 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ _site .jekyll-cache .asciidoctor verification-results +.java-version diff --git a/archunit/src/main/java/com/tngtech/archunit/lang/ArchRule.java b/archunit/src/main/java/com/tngtech/archunit/l...
7
7
5
[{"id": "G0", "claim": "The property-name constant should not be public API at all; it should be moved into SimpleArchRule and made private, with the raw string used in tests.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The AssertionError message shou...
null
TNG__ArchUnit__778
TNG/ArchUnit
778
defect
c9e2188603e3165bd8dd9edd5eff875889e40313
1cb659e5882c71834fda824ac4ab1f30afc1555f
implement containNumberOfElements for members
The method `containNumberOfElements` can be used to ensure that the `that`-clause matched a certain number of elements. E.g. `classes().that().implement(SomeBusinessInterface.class).should().containNumberOfElements(lessThanOrEqualTo(1))`. Until now, this method only existed for classes, but not for members. With thi...
diff --git a/archunit/src/main/java/com/tngtech/archunit/lang/conditions/ArchConditions.java b/archunit/src/main/java/com/tngtech/archunit/lang/conditions/ArchConditions.java index 8970a8812f..a3aae8d83a 100644 --- a/archunit/src/main/java/com/tngtech/archunit/lang/conditions/ArchConditions.java +++ b/archunit/src/main...
3
2
0
[{"id": "G0", "claim": "The condition should use getFullName and be parameterized over classes vs members so that the separate NumberOfClassesCondition/NumberOfMembersCondition subclasses become obsolete.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Bo...
null
TNG__ArchUnit__794
TNG/ArchUnit
794
defect
a26307dea2d4e75dbdccf01fbd20918c8c64453c
7827ac2cf1c4088e9af268cf30c40d1f976c9f81
Add predefined ImportOption to exclude package-info.class files
Resolves #793
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java b/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java index 0701674252..3afe75d794 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/importer/ImportOption.java +++ b/archunit/src/main/java/com/tn...
7
7
1
[{"id": "G0", "claim": "The new class's Javadoc misspells 'implementation' as 'impelmentation'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc should not carry the maven-compiler-plugin backstory and should instead explain what package...
null
TNG__ArchUnit__828
TNG/ArchUnit
828
defect
9913e3c104b6964dc421dbf3788003c019d22f7e
ce3367f3d9815964046498714c9cce68b408dfd4
make `@AnalyzeClasses` import package of test class by default
In particular coming from a Spring framework background it is a somewhat surprising behavior that a plain `@AnalyzeClasses` without any options will import the whole classpath. The more intuitive behavior would be to import the package of the annotated class. Since importing the whole classpath is likely not what most ...
diff --git a/archunit-junit/build.gradle b/archunit-junit/build.gradle index 11c012e132..663fad3ff1 100644 --- a/archunit-junit/build.gradle +++ b/archunit-junit/build.gradle @@ -50,6 +50,10 @@ dependencies { exclude module: 'guava' } testImplementation project(path: ':archunit', configuration: 'test...
3
2
0
[{"id": "G0", "claim": "The new test should use a consistent ArgumentMatchers style: it mixes `ArgumentMatchers.<ImportOptions>any(), ArgumentMatchers.<Collection<Location>>any()` where elsewhere in the file `any(ImportOptions.class), ArgumentMatchers.<Location>anyCollection()` is used, and it should be consistent.", "...
null
TNG__ArchUnit__878
TNG/ArchUnit
878
defect
347dc45866427229f80ec6e9fae37559e8667e87
747c27707cd2a31e80309f2df9426ed8aac6f46b
Improve ArchCondition that checks for transitive dependencies
This adds an ArchCondition to the fluent API to check whether there is any matching transitive dependency. This is a much more efficient variant of `#transitivelyDependOnClassesThat` that can be used to detect transitive dependencies in a huge codebase or to classes in large 3rd-party libraries like the Android SDK. It...
diff --git a/archunit/src/main/java/com/tngtech/archunit/lang/conditions/AnyTransitiveDependencyCondition.java b/archunit/src/main/java/com/tngtech/archunit/lang/conditions/AnyTransitiveDependencyCondition.java new file mode 100644 index 0000000000..84aa216e18 --- /dev/null +++ b/archunit/src/main/java/com/tngtech/arch...
15
15
2
[{"id": "G0", "claim": "Rework the violation message so it says the selected class 'depends on' the matched class (not 'accesses'), shows the path joined with '->' without '<..>' around the classes, adds 'transitively' before 'depends on' when the path is longer than one hop, and ends with the source code location.", "...
null
TNG__ArchUnit__904
TNG/ArchUnit
904
defect
65843a8b2dc8c037063e91725f3b98b85ec2225a
e349294b5a8897e4b0a9b5315e6b132e32f12687
Add API to create ArchConditions from predicates
So far there has not been any straight forward way to turn a `DescribedPredicate` into an `ArchCondition`, even though the semantics are fairly similar (both determine if elements match a certain condition). The reason is, that `ArchCondition` needs more information than `DescribedPredicate`. While `DescribedPredicate`...
diff --git a/archunit-integration-test/src/test/java/com/tngtech/archunit/testutils/ExpectedNaming.java b/archunit-integration-test/src/test/java/com/tngtech/archunit/testutils/ExpectedNaming.java index 67dc24037f..698000927c 100644 --- a/archunit-integration-test/src/test/java/com/tngtech/archunit/testutils/ExpectedNa...
9
7
0
[{"id": "G0", "claim": "The commit message of fa5508c22d04 ('fix inspection warnings') no longer matches its content after the rebase, since only deprecation fixes are left.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The Javadoc of the be/have...
null
TNG__ArchUnit__920
TNG/ArchUnit
920
defect
c081b98f139546962c98c89f135f78edab27de49
7ec7d8ef6a60088e50e0a2ad356d375e83efcba6
improve rule to handle more than one test class matching impl class
This will improve the existing rule to test that test classes reside in the same package as their implementation. In particular the rule 1. Should not fail if there are multiple test classes with the same simple name as long as one test class resides in the correct package 2. Should fail if none of multiple test cl...
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java b/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java index 62a96b6f9c..a5e4e5332b 100644 --- a/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java +++ b/archunit/src/main/java/com/tn...
6
6
0
[{"id": "G0", "claim": "The pull request's code should be formatted with the repo-provided formatter (https://github.com/TNG/ArchUnit/tree/main/develop) to keep unrelated formatting churn out of the diff.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
TNG__ArchUnit__922
TNG/ArchUnit
922
defect
c081b98f139546962c98c89f135f78edab27de49
e2cbc6be75145eb177d35dac0b60703a21cdea99
improve naming around `JavaPackage` dependencies
This breaking change will clear up some semantic ambiguities around the methods of `JavaPackage` that deal with subpackages. In particular, we will now consider dependencies from/to a package only those where the origin/target class **directly** resides within the package. Subpackages are considered only those packages...
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java b/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java index 5aca8f3f16..aa917d200f 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java +++ b/archunit/src/main/java/com/tngtech/arc...
9
8
1
[{"id": "G0", "claim": "The Javadocs of the dependency getters should be strengthened to emphasize that they only consider dependencies '(directly)' within this package, not ones involving subpackages.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim...
null
TNG__ArchUnit__944
TNG/ArchUnit
944
defect
8baaff4acaf74487aa8ec4332ee0f826da44696c
6fa8fba9367c716b0ff4465c99c21cbf7735e564
Make `EvaluationResult` respect `archunit_ignore_patterns.txt`
At the moment the handling of `archunit_ignore_patterns.txt` is inconsistent. E.g. `FreezingArchRule` still writes ignored violations to the `ViolationStore`, `EvaluationResult` reports `hasViolations` even if the violations are ignored, `EvaluationResult.getFailureReport()` still contains ignored violations and `Evalu...
diff --git a/archunit/src/main/java/com/tngtech/archunit/lang/ArchRule.java b/archunit/src/main/java/com/tngtech/archunit/lang/ArchRule.java index 304f218c0f..0f713ccbd9 100644 --- a/archunit/src/main/java/com/tngtech/archunit/lang/ArchRule.java +++ b/archunit/src/main/java/com/tngtech/archunit/lang/ArchRule.java @@ -1...
2
1
0
[{"id": "G0", "claim": "The change needlessly narrows to ArrayList: this.violations is just a List, and createViolations could easily operate on general Lists as well, since filterEvents creates a new list anyways.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
TNG__ArchUnit__958
TNG/ArchUnit
958
defect
0f54ef8e6062cda52798e001436d4266a1252a96
baa845a33bd7562972c2c82c04759a757894c7ba
Consolidate `ClassFileImporter.importClasspath(..)` with other APIs
All other import methods behave consistently by taking into account all the `ImportOptions` that have been added via `withImportOption(..)` and then only controlling where to look for class files by the final `import...()` method. Only `importClasspath()` transparently adds an `ImportOption` to exclude archives from th...
diff --git a/archunit-example/example-plain/src/test/java/com/tngtech/archunit/exampletest/SecurityTest.java b/archunit-example/example-plain/src/test/java/com/tngtech/archunit/exampletest/SecurityTest.java index c0a8197e42..23776064eb 100644 --- a/archunit-example/example-plain/src/test/java/com/tngtech/archunit/examp...
1
1
1
[{"id": "G0", "claim": "Lines L29 and L50 of docs/userguide/006_The_Core_API.adoc and L107 of docs/userguide/009_JUnit_Support.adoc still refer to `ImportOptions`, which could IMO be changed to `ImportOption`s, since in prose readers would assume a code construct named `ImportOptions` exists and be misled by the packag...
null
TNG__ArchUnit__964
TNG/ArchUnit
964
defect
5df1ce7e654f29e759c1757f0841a4d4d196099d
510190cddfa6a23ae8bd80bb052a3ee1402addd2
Replace PlantUML rule exceptions by violations
So far, when using `PlantUmlArchCondition`, if a class is contained in no component or multiple components an exception is thrown. This makes it impossible to freeze the current state with `FreezingArchRule`, because the test will simply crash hard. We now replace these exceptions by regular rule violations. That way ...
diff --git a/archunit/src/main/java/com/tngtech/archunit/library/plantuml/rules/ComponentIntersectionException.java b/archunit/src/main/java/com/tngtech/archunit/library/plantuml/rules/ComponentIntersectionException.java deleted file mode 100644 index c8e4a076eb..0000000000 --- a/archunit/src/main/java/com/tngtech/arch...
3
3
2
[{"id": "G0", "claim": "Do not rely on the toString() of the List built by Collectors.toList(); build the violation message string explicitly (e.g. with Collectors.joining).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the deleted test ca...
null
TNG__ArchUnit__966
TNG/ArchUnit
966
defect
ee1b43eed55e1314266cbf1827117cf7dd4a73fe
5decdcc3f4450912cc789a7ea8e9cdfc22413df7
Upgrade dependencies
In particular * `com.diffplug.spotless` from `6.8.0` to `6.11.0` * `com.github.spotbugs` from `5.0.9` to `5.0.12` * `com.gradle.enterprise` from `3.10.2` to `3.11.1` * `org.javamodularity.moduleplugin` from `1.8.11` to `1.8.12` * `tzinfo` from `1.2.7` to `2.0.5` in `/docs` * Gradle Wrapper from `7.5` to `7.5.1`...
diff --git a/archunit-java-modules-test/build.gradle b/archunit-java-modules-test/build.gradle index e17403da88..31f20200ee 100644 --- a/archunit-java-modules-test/build.gradle +++ b/archunit-java-modules-test/build.gradle @@ -1,6 +1,6 @@ plugins { id 'archunit.java-conventions' - id 'org.javamodularity.module...
1
1
0
[{"id": "G0", "claim": "The slf4j-api version 2.0.2 that the PR pins was superseded by 2.0.3 released only ~4 hours after the change was added, so the PR should bump to 2.0.3.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TNG__ArchUnit__968
TNG/ArchUnit
968
defect
6878f49d829a30f00670ceecd6cf786e36a9064a
0dcec6d8374f2fa92a7233741e6ecbabf3c6b0ec
Rename `JavaPackage.getAllClasses()` -> `getClassesInPackageTree()`
In all other places we have replaced the fuzzy word "all" by "in package tree" to clarify the semantics. The Javadoc already hinted at the fact that this method name should be consolidated. Now with release 1.0.0 we can break the API and don't need to deprecate the old method. I decided to call the method `getClassesIn...
diff --git a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java b/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java index 07197dffe1..f76291cdbb 100644 --- a/archunit/src/main/java/com/tngtech/archunit/core/domain/JavaPackage.java +++ b/archunit/src/main/java/com/tngtech/arc...
1
1
0
[{"id": "G0", "claim": "Change the javadoc of getClassesInPackageTree() from 'I.e. all classes in this package,' to ', i.e. all classes in this package,'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TNG__JGiven__1542
TNG/JGiven
1,542
defect
844bd52ccce879ebffbb2e7a02a5d56be6298d6d
d540fa1d4660e6b6f7f924da3b74478da3043d1e
Feature/separate plugin config and execution
TODO: * ~test that the jgiven report doesn't produce results if neither test, nor report is requested~ * ~check how the report looks with that double task instruction~ * ~better message for WIP commit~ * ~changelog~ * ~credit in changelog~
diff --git a/jgiven-gradle-plugin/src/main/java/com/tngtech/jgiven/gradle/JGivenPlugin.java b/jgiven-gradle-plugin/src/main/java/com/tngtech/jgiven/gradle/JGivenPlugin.java index 277f2d2563c..8952d29a76a 100644 --- a/jgiven-gradle-plugin/src/main/java/com/tngtech/jgiven/gradle/JGivenPlugin.java +++ b/jgiven-gradle-plug...
5
3
1
[{"id": "G0", "claim": "The hand-written getObjects() getter in JGivenReportTask should be replaced by a single `protected abstract ObjectFactory getObjects();` declaration to make the class more compact.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
TNG__JGiven__1574
TNG/JGiven
1,574
defect
afe79a5173370f3ea1117f4bc21dfa309ba0c5aa
5034d4c72708ec035148a824c8f6e5403d072097
Feature/more flexible as provider
Missing: [x] documentation [x] tests [x] works for method names. [x] check once for a real JGiven test [x] double check using As provider for method descriptions -- getDescription uses it. If anything we're more correct now
diff --git a/docs/report_generation.adoc b/docs/report_generation.adoc index 74eb814ffcf..ceac4f08342 100644 --- a/docs/report_generation.adoc +++ b/docs/report_generation.adoc @@ -217,3 +217,6 @@ jgiven.report.text.color jgiven.report.filterStackTrace=true ---- Configuration defined via Java system properties will ...
5
5
0
[{"id": "G0", "claim": "The rewritten paragraph in docs/stages.adoc dropped the space after the sentence-ending periods, so it should read '...reporting. For example...' and '...%, you can...'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
TNG__JGiven__210
TNG/JGiven
210
defect
d0d7788d39a8167d2b0ef2d93ed4bc89f0e1cc6a
e93e24f74dec4a64385c7cd0a29d8a1536ee4c71
Allow providing an additional comment on step method invocations
This PR is not yet complete. As of now, it implements the basic mechanism and printing a comment in the PlainTextReporter. Missing: - Displaying it in the HTML report. - Tests, obviously. :-) I just want to run it by you first to get feedback on the overall solution and also to discuss how the HTML report should displ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae5cb19ae2..f64b6d9411f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v0.12.0 * Allow multiple formatter annotations on arguments, e.g., "@Quoted @YesNo", see [#204](https://github.com/TNG/JGiven/issues/204). +* Added a new comment() method to provide...
3
1
1
[{"id": "G0", "claim": "The step comment could accept any object by using its toString method instead of requiring the parameter to be a String.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The API design should be reconsidered: addAttachment is expose...
null
TNG__JGiven__213
TNG/JGiven
213
defect
2aa1d0063cbed750c055350f6b73a4beaa51c5ac
1942ceebfb236c9f844bf2b82f78ace199d4fd1d
Allow adding tags dynamically.
This commit allows adding tags dynamically to a scenario at runtime. Furthermore, it implicitly fixes an issue where nested tags, description and href would not be evaluated if ignoreValue was set to true. fixes #172
diff --git a/CHANGELOG.md b/CHANGELOG.md index f64b6d9411f..1e84089f963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Allow multiple formatter annotations on arguments, e.g., "@Quoted @YesNo", see [#204](https://github.com/TNG/JGiven/issues/204). * Added a new comment() method to provide further in...
4
3
0
[{"id": "G0", "claim": "Programmatic tag-adding should be exposed through the scenario context — first suggested as a method in CurrentStep, settled as a new CurrentScenario interface with an addTag method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
TNG__JGiven__215
TNG/JGiven
215
defect
e162dcf3599e807ba53a699b0efa464ebec8c6db
ce4198e33fe3d212a2aef455788930641135085e
Extend @As with a provider mechanism.
This change extends the @As annotation for step / stage methods and classes with an AsProvider provider() method to allow a more flexible way of customizing the result. fixes #189
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa72e22e0f..cbb74f8f9ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Added a new CurrentScenario interface similar to CurrentStep. * The CurrentScenario interface allows adding tags programmatically, see [#172](https://github.com/TNG/JGiven/issues/172)...
6
5
3
[{"id": "G0", "claim": "The pull request still lacks documentation for the new @As provider mechanism.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the default provider work like CaseDescriptionGenerator, using the special NO_VALUE value to...
null
TNG__JGiven__250
TNG/JGiven
250
defect
2ebb77954d626a37078feb2b3ab08a3a87db0db8
f8bf4eeb59373c19d873928113cc9c276b3c5df5
Use Spring's @Rule support instead of @RunWith(SpringJunit4ClassRunner)
Use Spring's @Rule support added in v4.2 for the SpringScenarioTest instead of using SpringJUnit4ClassRunner. Enables the use of custom JUnit runners like DataProviderRunner (see example test).
diff --git a/examples/spring-boot/src/test/java/com/tngtech/jgiven/example/springboot/HelloControllerTest.java b/examples/spring-boot/src/test/java/com/tngtech/jgiven/example/springboot/HelloControllerTest.java index 45db902fc29..d96ca010362 100644 --- a/examples/spring-boot/src/test/java/com/tngtech/jgiven/example/spr...
3
2
1
[{"id": "G0", "claim": "Introduce a separate class for the new @Rule-based implementation and keep the existing runner-based SpringScenarioTest (and runner-based test execution) supported, because otherwise users of old Spring versions will not be able to use that class anymore.", "category": "design", "verdict": "supp...
null
TNG__JGiven__261
TNG/JGiven
261
defect
ac7b0b8c3b9bc523bca421d6fc62a1320f9204f7
cff0400a96aed234898257579cfa01c2e5eba71e
Rewrite of the Spring integration
- Instead of using a Spring-based interceptor, the new integration uses the standard JGiven interceptor using ByteBuddy. - The implementation is based on using a BeanFactoryPostProcessor that replaces the original Stage bean class with the one created by ByteBuddy Fixes #259
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a213a2d7a7..72451af6647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# v0.14.0 + +## Spring Integration: Backwards Incompatible Changes + +In order to fix issue #259 the Spring integration was largely rewritten. If you only had used the `@EnableJGiven` a...
1
1
1
[{"id": "G0", "claim": "The pull request requires Spring 4 because JGivenBeanFactoryPostProcessor enumerates beans with getBeanNamesIterator, which is not available in Spring 3; the reviewer asks whether getBeanDefinitionNames (or getBeanNamesForAnnotation), which are available in Spring 3, could be used instead so tha...
null
TNG__JGiven__283
TNG/JGiven
283
defect
e54f8263ca5f6729bcea0fc1032e33b3d4378a9c
9d327992d5ee14b1b889787948ffe4ef954bc075
Issue 236, Extended Description argument parsing functionality
- added front-end parsing for extended descriptions with arguments - added front-end tests in utilTest.js - added example usage in ExtendedDescriptionTest.java - added example for @As usage with direct references to arguments in AsAnnotationExampleTest.java - added documentation for @As and @ExtendedDescription in ...
diff --git a/docs/parameterized_steps.adoc b/docs/parameterized_steps.adoc index 48a5f1b6019..8318ec20c77 100644 --- a/docs/parameterized_steps.adoc +++ b/docs/parameterized_steps.adoc @@ -26,6 +26,38 @@ If there are more parameters than `$` characters, the remaining parameters are a If a `$` should not be treated a...
14
10
1
[{"id": "G0", "claim": "The example's annotation text says @At where it should say @As.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The double-escaped $$ occurrences in the ExtendedDescription example should be justified or dropped, since they ...
null
TNG__JGiven__472
TNG/JGiven
472
defect
fd5ccd5a76707b40d6cea825d7b37bf27e63d741
d5852193936e255e89d60c35b3de3b364506b3aa
Implementation of "Filler Words"
Hi @janschaefer and @l-1squared. I have the first PR ready. In addition to the new `@FillerWord` concept I've also added `@Punctuation`, let me know what you think? Richard
diff --git a/docs/stages.adoc b/docs/stages.adoc index 116987ce4d3..b760c217ee0 100644 --- a/docs/stages.adoc +++ b/docs/stages.adoc @@ -110,6 +110,69 @@ public SELF comma() { } ---- +=== Filler Words + +Filler words can be used to build a common and reusable vocabulary for your tests. This enables you to write +be...
11
9
1
[{"id": "G0", "claim": "A comma should be added after 'reports' in the FillerWord javadoc sentence.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The usage example in the Punctuation javadoc should be removed, as such examples are better saved fo...
null
TNG__JGiven__690
TNG/JGiven
690
defect
df3806328b7ce0184296cc21536beb7f4ccbb7e5
adb647c208a746f63b0205106c1ea3b49f66e708
Fix for issue #366 nested steps not showing attachments in html report
Fix for issue #366 nested steps not showing attachments in html report Added recursive visiting of nested steps in ScenarioCaseModel so that all attachments of nested steps will be found and shown in report. PlainTextScenarioWriter had to be adjusted so that it uses the nested steps found by the visitor for the pla...
diff --git a/jgiven-core/src/main/java/com/tngtech/jgiven/report/model/ScenarioCaseModel.java b/jgiven-core/src/main/java/com/tngtech/jgiven/report/model/ScenarioCaseModel.java index fb1a0bda778..6f7feb46961 100644 --- a/jgiven-core/src/main/java/com/tngtech/jgiven/report/model/ScenarioCaseModel.java +++ b/jgiven-core/...
2
2
1
[{"id": "G0", "claim": "The files touched by the pull request need to be formatted according to the repo's checkstyle.xml, ideally in an extra commit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "There is no test dedicated to the pull request'...
null
TNG__JGiven__700
TNG/JGiven
700
defect
f1dafd8dac99474d8c7581ab92a0bbda344ef947
895dcc722d0839dd1563ce072d9166fe1cb3a14e
Add new guaranteed field inside a ScenarioState or a ProvidedScenarioState
Fixes #268
diff --git a/jgiven-core/src/main/java/com/tngtech/jgiven/annotation/ProvidedScenarioState.java b/jgiven-core/src/main/java/com/tngtech/jgiven/annotation/ProvidedScenarioState.java index 5e81db69dc0..c4b1444818e 100644 --- a/jgiven-core/src/main/java/com/tngtech/jgiven/annotation/ProvidedScenarioState.java +++ b/jgiven...
3
2
0
[{"id": "G0", "claim": "The method name 'checkInialized' is misspelled and should read 'checkInitialized'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested double if-blocks for ProvidedScenarioState/ScenarioState should be extracted into a ...
null
TNG__JGiven__701
TNG/JGiven
701
defect
f1dafd8dac99474d8c7581ab92a0bbda344ef947
639362e1e97b7ab74005441f046cb197e6a1a901
Fix build errors
PR for fixing the random errors of automated builds which seem to be caused by a timeout of XPath searching method from Selenium
diff --git a/.github/workflows/jgiven_branch_and_pr_build.yml b/.github/workflows/jgiven_branch_and_pr_build.yml index 9c1e25e8e34..50866c0e9b9 100644 --- a/.github/workflows/jgiven_branch_and_pr_build.yml +++ b/.github/workflows/jgiven_branch_and_pr_build.yml @@ -26,6 +26,8 @@ jobs: if: ${{matrix.java == '8' ...
1
1
0
[{"id": "G0", "claim": "The `By elementLocator = By.xpath(...)` line could be moved down to the `findElements` command, since they seem to belong together.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TNG__JGiven__706
TNG/JGiven
706
defect
8e1d6c971852d961b9e36b912f5e8ec29059ee72
d63650e58fdae7aa203e56f0852fce74c9ac98d4
Fix SVG files not having a thumbnail
Fixes #703
diff --git a/jgiven-core/src/main/java/com/tngtech/jgiven/attachment/MediaType.java b/jgiven-core/src/main/java/com/tngtech/jgiven/attachment/MediaType.java index 2b27ed8363e..ba65ddc935a 100644 --- a/jgiven-core/src/main/java/com/tngtech/jgiven/attachment/MediaType.java +++ b/jgiven-core/src/main/java/com/tngtech/jgiv...
7
4
1
[{"id": "G0", "claim": "The new SVG helpers (getPNGFromSVG, createSVGThumbFile) open streams and writers with manual try/catch, so a resource may be held open when an exception is thrown; the reviewer asks for try-with-resources and separately caught exceptions.", "category": "correctness", "verdict": "supported", "pri...
null
TOPLLab__WARDuino__155
TOPLLab/WARDuino
155
defect
5ac74191397eecf56861aec1a439b152ed378c37
3f4ef7c31fa5737345f814929f475d9b920c46f6
Add update stackvalue message
This PR adds to WARDuino the ability to update stack values. Concretely what the PR does: - refactored the interruptUPDATEGlobal to use deserialiseStackValue - add unit tests for the deserialiseStackValue - add interrupt to update StackValue
diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 19c559d9d..fd95ef967 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.draft == false steps: - ...
2
1
1
[{"id": "G0", "claim": "Remove the possibility of changing a stack value's type when handling interruptUpdateStackValue, since a type change there makes no sense and risks stack values carrying the wrong type for function calls and instructions.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
TOPLLab__WARDuino__167
TOPLLab/WARDuino
167
defect
254c7375748900c17eca3fbb0be00ceeb07b0d35
7e3b391494901e806847e85b63f4bfa9bb20e9bd
Fix/memory leak/free guard blocks
This PR solves the two memory leaks bugs mentioned in [discussion](https://github.com/orgs/TOPLLab/discussions/1) - the first commit fixes https://github.com/TOPLLab/WARDuino/commit/460781a - the second commit fixes https://github.com/TOPLLab/WARDuino/commit/eaefd24
diff --git a/src/Edward/proxy.cpp b/src/Edward/proxy.cpp index fd9a2eb08..66739e2a3 100644 --- a/src/Edward/proxy.cpp +++ b/src/Edward/proxy.cpp @@ -113,7 +113,7 @@ void Proxy::pushProxyGuard(Module *m) { if (m == nullptr) { return; } - auto *guard = new Block(); + auto *guard = (Block *)malloc...
3
3
3
[{"id": "G0", "claim": "pop_block frees the guard block and then returns that same now-dangling pointer, which seems dangerous and may allow double frees; the pointer should be set to null to be safe.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
TTLApp__time-to-leave__1047
TTLApp/time-to-leave
1,047
defect
93b7fed893c6e6ed1231d2ead9b9863f11d4121e
beb40b3134529b1ce5274af7b0b174fb36f318d3
Fixing missing IPC handlers in tests (and other issues)
#### Related issue Closes #1036 #### Context / Background There are a few issues that show up only on the CI for the PR Checks, indicating missing ipc handlers in our tests. On Ubuntu specifically there were a lot of warnings caused by a misconfigured Chrome Driver. #### What change is being introduced by this...
diff --git a/.github/workflows/Checks.yml b/.github/workflows/Checks.yml index 4e86a0efc..086967ad0 100644 --- a/.github/workflows/Checks.yml +++ b/.github/workflows/Checks.yml @@ -23,7 +23,7 @@ jobs: run: | export DISPLAY=:99 # TODO: need to download driver according to electron's versio...
2
1
0
[{"id": "G0", "claim": "The XDG_RUNTIME_DIR/DBUS setup in the Tests step could be merged into the previous 'Startup ChromeDriver and Display in Ubuntu' step instead of living as a separate block.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should...
null
TTLApp__time-to-leave__162
TTLApp/time-to-leave
162
defect
d9d05008703fed07c303b45aa450a2d8a64d8496
597013d6bad0b121d7030bbe21b533d405463533
Window handling
#### Related issue #160 #### What change is being introduced by this PR? - How did you approach this problem? - Modified the handling of closing and opening the main window. - Behavior is now consistent with other similar apps.
diff --git a/main.js b/main.js index 639b4a833..016393d85 100644 --- a/main.js +++ b/main.js @@ -50,7 +50,7 @@ async function checkForUpdates(showUpToDateDialog) { if (!online) { return; } - + const request = net.request('https://api.github.com/repos/thamara/time-to-leave/releases/latest'); ...
2
2
1
[{"id": "G0", "claim": "Add a space after the if keyword in the new close-handler condition.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added else-if branch calling win = null and app.quit() when app.isQuitting is unnecessary because the...
null
TTLApp__time-to-leave__247
TTLApp/time-to-leave
247
defect
362f3cac953581cb53855d465c3a11a3fc52a486
528d07f925892907503c3563d4f4761078e51ece
Day view
#### Related issue #96 Minimalist View #### Context / Background - Briefly explain the purpose of the PR by providing a summary of the context This PR is adding a Day View to the calendar, which focuses the view to just one day, making it a "minimalist" version of sorts. #### What change is being introduced ...
diff --git a/__tests__/__renderer__/classes/Calendar.js b/__tests__/__renderer__/classes/Calendar.js index c67552423..9fe353d76 100644 --- a/__tests__/__renderer__/classes/Calendar.js +++ b/__tests__/__renderer__/classes/Calendar.js @@ -2,7 +2,7 @@ const Store = require('electron-store'); const { defaultPreferences...
7
6
4
[{"id": "G0", "claim": "The readme has to credit the author of the new view-switch icon, whose origin must be known.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The preferences window no longer fits its content: it is not wide enough (a day lab...
null
TTLApp__time-to-leave__256
TTLApp/time-to-leave
256
defect
44263a10badff945e1a386c3fd209a48952a130f
20c42a5ca9be669815580139ffc4e4a974395738
HTML and JS formatting changes for common windows
#### Related issue No issue #### Context / Background - Briefly explain the purpose of the PR by providing a summary of the context In this PR I'm improving the formatting for HTML and JS files for the common windows, and merging their styles on the CSS file. #### What change is being introduced by this PR? ...
diff --git a/__tests__/__renderer__/themes.js b/__tests__/__renderer__/themes.js index 783890c23..0291502bd 100755 --- a/__tests__/__renderer__/themes.js +++ b/__tests__/__renderer__/themes.js @@ -3,7 +3,7 @@ const { applyTheme, isValidTheme } = require('../../js/themes'); - +window.$ = window.jQuery = requi...
1
1
0
[{"id": "G0", "claim": "The pull request's entry should not be added to changelog.txt because these HTML and JS formatting changes bring no user-visible changes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TTLApp__time-to-leave__280
TTLApp/time-to-leave
280
defect
7061e33419f265b47b3cf51876851f1f667d3c46
b5ed50410ad87b91f64a6e6e14763d88f4df3dcb
Fix icon for debian
#### Related issue Closes #276 #### Context / Background The icons for linux based OS need to be png. #### What change is being introduced by this PR? <!-- - How did you approach this problem? - What changes did you make to achieve the goal? - What are the indirect and direct consequences of the change? --...
diff --git a/__tests__/__renderer__/window-aux.js b/__tests__/__renderer__/window-aux.js index 2c532c741..244a1b3f9 100644 --- a/__tests__/__renderer__/window-aux.js +++ b/__tests__/__renderer__/window-aux.js @@ -6,9 +6,9 @@ const { BrowserWindow } = remote; describe('window-aux.js Testing', function() { process....
1
1
0
[{"id": "G0", "claim": "The Windows platform variable should be named `win32` rather than the misspelled `wind32`, since win32 is a widely recognizable identification of windows.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TTLApp__time-to-leave__307
TTLApp/time-to-leave
307
defect
4c9a7be477e948d56cdd5db05b0eb432ab19d309
8c5dc73a63ef711872b1a07b4a48274cd212f97a
Introducing "Overall Balance"
#### Related issue Closes #164 #### Context / Background We were missing an all-time balance, that considered all the entries in the history of TTL. #### What change is being introduced by this PR? Changed the Calendars to display Overall Balance instead of Month Sum (which I think isn't really that helpful). ...
diff --git a/__tests__/__main__/time-balance.js b/__tests__/__main__/time-balance.js new file mode 100644 index 000000000..26b2c2332 --- /dev/null +++ b/__tests__/__main__/time-balance.js @@ -0,0 +1,226 @@ +/* eslint-disable no-undef */ +const Store = require('electron-store'); +const { + computeAllTimeBalancelUntil...
8
6
1
[{"id": "G0", "claim": "The test expects '-08:00' for the balance until day 4 but it should be '-16:00' (two skipped working days).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The expectation for day 11 in the 'waived days 2' test should be -08:00 in...
null
TTLApp__time-to-leave__308
TTLApp/time-to-leave
308
defect
4c9a7be477e948d56cdd5db05b0eb432ab19d309
fae6de4ba708e4fe7f6158e01a0e693807f77924
Fix rainbow
Fixing transparency of table header and renaming the theme to something a little closer to home. ;p
diff --git a/__tests__/__renderer__/themes.js b/__tests__/__renderer__/themes.js index c473aa29d..2dab3041b 100755 --- a/__tests__/__renderer__/themes.js +++ b/__tests__/__renderer__/themes.js @@ -11,7 +11,7 @@ describe('Theme Functions', function() { test('should validate', () => { expect(isValid...
8
8
8
[{"id": "G0", "claim": "The theme selector in src/preferences.html should use the value/label cadent-star/\"Cadent Star\" instead of cadent-start/\"Cadent Start\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The isValidTheme test should expect 'c...
null
TTLApp__time-to-leave__316
TTLApp/time-to-leave
316
defect
4f44a580c36755ad9af418cdb11c015134ba7d9e
23c3aa63e37923e59200dbb374809630a4354240
Adding test for workday-waiver
There might be some better way of loading the HTML, but I could not find one that works. Ideally, we would just source the HTML for the workday waiver. But I'm already glad this allows us to test and improve the coverage of the project.
diff --git a/__tests__/__renderer__/workday-waiver.js b/__tests__/__renderer__/workday-waiver.js new file mode 100644 index 000000000..7190f01f3 --- /dev/null +++ b/__tests__/__renderer__/workday-waiver.js @@ -0,0 +1,123 @@ +/* eslint-disable no-undef */ +const Store = require('electron-store'); + +function prepareMock...
8
8
2
[{"id": "G0", "claim": "The test's hardcoded inline HTML mockup should be replaced with a better approach, such as reading the HTML from a file, as the author requested suggestions for and the reviewer proposed alternatives.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
TTLApp__time-to-leave__336
TTLApp/time-to-leave
336
defect
057e81b22b4ceec37ba73689923aef19bb910f7c
f6644acba99592551fe653a713d100588ba5bf91
Improving performance of all time balance calculation
#### Related issue Closes #334 #### Context / Background All time balance calculation introduced a big performance degradation on TTL. #### What change is being introduced by this PR? - Fixing function name (extra L) - Fixing targetDate on Calendar - Avoiding store.get calls on all time balance calculation t...
diff --git a/__tests__/__main__/time-balance.js b/__tests__/__main__/time-balance.js index 92deb5fba..61eb93ae4 100644 --- a/__tests__/__main__/time-balance.js +++ b/__tests__/__main__/time-balance.js @@ -1,7 +1,7 @@ /* eslint-disable no-undef */ const Store = require('electron-store'); const { - computeAllTimeBa...
1
1
0
[{"id": "G0", "claim": "Computing the all-time-balance target date with today's date inside _updateAllTimeBalance fixes this PR's symptom but the underlying bug is that the month calendar mutates the calendar date, so the target date should be computed at the prev/next month level (or per calendar type) via a follow-up...
null
TTLApp__time-to-leave__374
TTLApp/time-to-leave
374
defect
9221c1caf6221828b4fa3cd85430916538c0d0cc
97e728f5b5b9ac315e5e72fe6dd5dcb39f26628c
fix: Check that lunch has beginning and end, if there is lunch
#### Related issue Closes #214 #### Context / Background _hasInputErrors should return true if lunch ends without beginning or the day ends but lunch began and didn't end #### What change is being introduced by this PR? a variable bDuringLunch that is false if lunch didn't begin at all or already ended, an...
diff --git a/__tests__/__renderer__/classes/Calendar.js b/__tests__/__renderer__/classes/Calendar.js index 49c582de7..a6d53fe6c 100644 --- a/__tests__/__renderer__/classes/Calendar.js +++ b/__tests__/__renderer__/classes/Calendar.js @@ -186,8 +186,8 @@ describe('Calendar class Tests', () => { expect(calend...
3
2
0
[{"id": "G0", "claim": "Rename the boolean variable `bDuringLunch` to follow the project's naming convention, using a name that indicates its boolean nature such as `hasLunchStarted`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether t...
null
TTLApp__time-to-leave__383
TTLApp/time-to-leave
383
defect
d719068eeec2b96f733e28b33cf94d85fb882631
02516c7a8676dec67a1b97c0182d05e1cf6988d2
Add system default to auto-detect if dark or light mode is set
Add "system-default" theme which auto-detects if the a person has their system set to prefer dark or light mode and set the default theme to it. Related to #69
diff --git a/__tests__/__renderer__/themes.js b/__tests__/__renderer__/themes.js index 4eff389d4..e36e5dfe7 100755 --- a/__tests__/__renderer__/themes.js +++ b/__tests__/__renderer__/themes.js @@ -11,6 +11,7 @@ describe('Theme Functions', function() { describe('isValidTheme()', function() { test('should...
4
3
1
[{"id": "G0", "claim": "The author should add a gif showing how the system-default theme works based on the system's color scheme (and state which OS it was tested on).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should add a commit ...
null
TTLApp__time-to-leave__403
TTLApp/time-to-leave
403
defect
3e786e5263b485502ad5b973a63cd84c4d06c8bf
d1e03b38d5c612a6edcf2bae544e562806afc9ec
refactor: Replace switch statement with objectLiteral/functions
#### Related issue Closes issue-291 #### Context / Background The switch statement was too large, not maintainable over time. #### What change is being introduced by this PR? <!-- - How did you approach this problem? The switch statement was to complex and hard to follow so I evaluate each case and found dupl...
diff --git a/js/user-preferences.js b/js/user-preferences.js index 7ed8ec015..2aa3eb50b 100644 --- a/js/user-preferences.js +++ b/js/user-preferences.js @@ -16,8 +16,8 @@ const defaultPreferences = { 'notifications-interval': '5', 'start-at-login': false, 'theme': 'system-default', - 'overall-balance-...
3
3
1
[{"id": "G0", "claim": "Address the two new code-style (lint) issues CodeFactor found in this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Validating both entries of timeInputs with validateTime is wrong: notifications-interval i...
null
TTLApp__time-to-leave__408
TTLApp/time-to-leave
408
defect
366862c2c69d1f64fc328cdd9106cd29fe1f14a7
1e27f470ae925cb8724f444c2f17ed8fa8310a5d
refactor : Reinforce param order in Calendar.js
#### Related issue #385 #### Context / Background <!-- - Convert order of day, month, year to yaer, month, day -->
diff --git a/__tests__/__renderer__/classes/Calendar.js b/__tests__/__renderer__/classes/Calendar.js index 59b1d91fd..db3639e46 100644 --- a/__tests__/__renderer__/classes/Calendar.js +++ b/__tests__/__renderer__/classes/Calendar.js @@ -7,7 +7,7 @@ const { CalendarFactory } = require('../../../js/classes/CalendarFactor...
8
7
1
[{"id": "G0", "claim": "The pull request does not include the referenced changeset and some linting fixes, and has a few tests failing on CI, so the author should check and fix those.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "CodeFactor still r...
null