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
Infisical__infisical__5697
Infisical/infisical
5,697
defect
f85698f7972d25ca18fcc637f2352ebef282224c
5d4cfca7fee69b6b7219edcb37bd46576f02c32f
improvement(pki): add RBAC policy conditions for certificate metadata
## Context Adds metadata as an RBAC condition for certificates ## Screenshots <img width="3456" height="1918" alt="CleanShot 2026-03-15 at 00 56 55@2x" src="https://github.com/user-attachments/assets/0bcab825-3b58-42c1-b328-3ea79abd452f" /> ## Steps to verify the change ## Type - [ ] Fix - [ ] Featur...
diff --git a/backend/src/ee/services/permission/project-permission.ts b/backend/src/ee/services/permission/project-permission.ts index 9bbcc1f82ff..38876f5b4f9 100644 --- a/backend/src/ee/services/permission/project-permission.ts +++ b/backend/src/ee/services/permission/project-permission.ts @@ -470,10 +470,11 @@ expor...
5
1
1
[{"id": "G0", "claim": "Moving the certificateRequestDAL.findById call and its NotFoundError check before the permission check in getCertificateRequest lets unauthorized users distinguish non-existent certificate requests (404) from ones they lack access to (403), an information disclosure; a general permission guard s...
null
Infisical__infisical__5799
Infisical/infisical
5,799
defect
b6483d1c3e4dce32ea4f9e537844bc3cdb44ad83
8b78868de5f222c2ceb34320c399c0268b08bf7a
improvement: use etag caching for list secrets api
## Context List Secrets is by far the most used API path, largely because of kubernetes operator polling which only has diff on change. Meaning most requests end up with a response thats identical to the existing data, this PR aims to fix that. - Add ETag support to list secrets API - Return 304 based on IfNotMod...
diff --git a/backend/e2e-test/mocks/keystore.ts b/backend/e2e-test/mocks/keystore.ts index 1e59a69a357..f5c2a3d8c43 100644 --- a/backend/e2e-test/mocks/keystore.ts +++ b/backend/e2e-test/mocks/keystore.ts @@ -7,6 +7,7 @@ import { Lock } from "@app/lib/red-lock"; export const mockKeyStore = (): TKeyStoreFactory => { ...
4
3
2
[{"id": "G0", "claim": "The ETag cache key (etagField) is built only from actorId and the rest-spread params, omitting destructured request-shaping fields such as environment, path, recursive and includeImports, so two requests by the same actor that differ only in environment or path collide on one etagField and can b...
null
Infisical__infisical__5987
Infisical/infisical
5,987
defect
d23bc6311f3db274c8036a25c537718debf73766
6f8fc7ce42fddb61f61ea02012c763b7c2fd3b85
feature(cache): add withCache helper and refactor Redis cache-aside usage
## Context Introduces a small **`withCache`** cache-aside helper (`backend/src/lib/cache/with-cache.ts`) that reads from Redis, falls back to a `fetcher` on miss or Redis errors, and writes back with TTL. Centralizes the repeated get → parse → fetch → `JSON.stringify` → `setItemWithExpiry` pattern and avoids failing...
diff --git a/backend/src/lib/cache/with-cache.test.ts b/backend/src/lib/cache/with-cache.test.ts new file mode 100644 index 00000000000..3f01f762743 --- /dev/null +++ b/backend/src/lib/cache/with-cache.test.ts @@ -0,0 +1,237 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; + +import { withC...
8
3
1
[{"id": "G0", "claim": "updateServerCfg still calls keyStore.setItemWithExpiry directly with no error handling, so if Redis is unavailable the DB update succeeds but the bare setItemWithExpiry call throws and the API returns a 500 even though the config change was successfully persisted.", "category": "correctness", "v...
null
Infisical__infisical__6019
Infisical/infisical
6,019
defect
f3af0f7f4f890ff1b79c5c5f00390a6e50e563fe
af3d873d46a529b74aaaeecdf8906501ff50f96f
fix: validate all permission rules in access approval requests
## Context Validate all permission rules in access approval requests ## Screenshots <!-- If UI/UX changes, add screenshots or videos. Delete if not applicable. --> ## Steps to verify the change ## Type - [x] Fix - [ ] Feature - [ ] Improvement - [ ] Breaking - [ ] Docs - [ ] Chore ## Checklist...
diff --git a/backend/src/ee/routes/v1/access-approval-request-router.ts b/backend/src/ee/routes/v1/access-approval-request-router.ts index 0ed4b18dcc8..b73b058ea2a 100644 --- a/backend/src/ee/routes/v1/access-approval-request-router.ts +++ b/backend/src/ee/routes/v1/access-approval-request-router.ts @@ -27,7 +27,7 @@ e...
2
1
1
[{"id": "G0", "claim": "Rejecting or updating legacy stored access requests whose packed permission rules are malformed now throws (the new always-on verifyRequestedPermissions in reviewAccessRequest and updateAccessApprovalRequest has no fallback/error handling), leaving those requests permanently stuck in pending wit...
null
Infisical__infisical__6031
Infisical/infisical
6,031
defect
8c84c978b43a6fc9ebe7c1afe81b6ecb15fce424
af34f5cf3cd03a6fbcdd6219bcc0dd9671b33f9d
feature(cache): project permission caching
## Context Replaces the old project-permission Redis pattern (DAL version counter + `invalidateProjectPermissionCache` call sites) with a **fingerprint-based two-tier cache**: short-lived marker + longer-lived JSON payload, validated via a lightweight `getPermissionFingerprint` query when the marker expires. This cu...
diff --git a/backend/CLAUDE.md b/backend/CLAUDE.md index a38752b0214..dac4f05cb10 100644 --- a/backend/CLAUDE.md +++ b/backend/CLAUDE.md @@ -124,6 +124,15 @@ Uses CASL (`@casl/ability`) with MongoDB-style rules. Permission logic lives in Built-in roles: `Admin`, `Member`, `Viewer`, `NoAccess`. Custom roles use unpac...
8
5
1
[{"id": "G0", "claim": "The fingerprint request is keyed to actorOrgId while canBypassSso is computed from rootOrgId when the project belongs to a sub-organization, so bypass grants/revokes at the root org may not change the fingerprint and cached canBypassSso can stay stale until the data TTL expires.", "category": "c...
null
Infomaniak__desktop-kDrive__1005
Infomaniak/desktop-kDrive
1,005
defect
2b775abb57d49a968be90dfbcb72acf0af2bd639
bd818ff393ac7023e7befec81883e5676ed9bde6
fix(blacklistpropagator): hydrated items should go to local trash when they are excluded by the user
This PR addresses an issue reported by users. For synchronizations of type `LiteSync`, the content of folders which are excluded by the user from the synchronization via the `desktop-kDrive` GUI is **not** moved to trash, even though the user has selected the corresponding option in the application preferences as ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 46f0e6005cc..297f99660a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,9 +257,15 @@ elseif(BUILD_CLIENT) configure_file(cmake/modules/NSIS.template.nsi.in ${CMAKE_CURRENT_BINARY_DIR}/NSIS.template.nsi @ONLY) # Default sync exclude list - ...
11
11
1
[{"id": "G0", "claim": "The GUI message shown when folders are unselected uses the technical term \"hydrated\", which is too technical for end users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The line return inside the GUI message string lite...
null
Infomaniak__desktop-kDrive__1030
Infomaniak/desktop-kDrive
1,030
defect
87452bdce0887b863b99441c0fb1a52ceff52eb3
98a1076a986980c6c4eddd933d81ff612297508c
[TRELLO-1048] Handle exceptions thrown by `std::file_system` functions for symbolic links with too many levels
This pull-request aims at allowing the synchronization of symbolic links, should they be valid or not, without raising any error to the user. The symbolic links which have too many levels of indirection, typically those involved in link loops, cause several `std::filesystem` functions to throw exceptions depending o...
diff --git a/extensions/windows/cfapi/Common/utilities.cpp b/extensions/windows/cfapi/Common/utilities.cpp index 3ee0615c361..5125374857d 100644 --- a/extensions/windows/cfapi/Common/utilities.cpp +++ b/extensions/windows/cfapi/Common/utilities.cpp @@ -386,8 +386,9 @@ bool Utilities::checkIfIsDirectory(const wchar_t *p...
5
4
0
[{"id": "G0", "claim": "Asks why the node-type assignment in _getFileStatFn is not handled in setTargetNodeType, suggesting that code belongs there.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Utilities::checkIfIsDirectory should use the isLikeTooManySy...
null
Infomaniak__desktop-kDrive__1073
Infomaniak/desktop-kDrive
1,073
defect
6376d1e70e2dd9d5b11157eed37fe9ccd6db9c72
05a4d11601fb57216dff386b99624dc7216ff676
[TRELLO-1100] Fixes incorrect sort of Create events
The sort of `Create` operations did not always consider the highest index of another `Create` operation whose affected node is an ancestor of the first operation.
diff --git a/src/gui/adddriveloginwidget.cpp b/src/gui/adddriveloginwidget.cpp index 7573819ef9e..03f1a49558c 100644 --- a/src/gui/adddriveloginwidget.cpp +++ b/src/gui/adddriveloginwidget.cpp @@ -50,20 +50,13 @@ const int stateStringLength = 8; Q_LOGGING_CATEGORY(lcAddDriveLoginWidget, "gui.adddriveloginwidget", Qt...
6
4
0
[{"id": "G0", "claim": "The changes in src/gui/adddriveloginwidget.cpp are unrelated to the sorting issue and should not be part of this pull request (they belong to PR #1071).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment should re...
null
Infomaniak__desktop-kDrive__1100
Infomaniak/desktop-kDrive
1,100
defect
fc071d6f398144111cb110cd858a22aca729eb3e
38765f9a6f814de34c3d820c25c50042eed347b0
Fix update issue on Windows
On Windows, if an installer was already existing in the temp directory but only partially downloaded, the update is impossible. This PR aims at checking the expected size of the installer using a HEAD request and comparing it with the size of the local file (if it exists). If the sizes are the same, we skip the downlo...
diff --git a/src/libsyncengine/jobs/network/abstractnetworkjob.cpp b/src/libsyncengine/jobs/network/abstractnetworkjob.cpp index 3828596dfd..49f2a7b039 100644 --- a/src/libsyncengine/jobs/network/abstractnetworkjob.cpp +++ b/src/libsyncengine/jobs/network/abstractnetworkjob.cpp @@ -225,8 +225,8 @@ ExitInfo AbstractNetw...
1
1
0
[{"id": "G0", "claim": "It would be nice to have some unit tests or integration tests for the changes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Infomaniak__desktop-kDrive__1101
Infomaniak/desktop-kDrive
1,101
defect
fc071d6f398144111cb110cd858a22aca729eb3e
e5fc6dd6fcd700e309774d735df85bef0875fbff
Check cycles only if no move operations
Cycles might occur only if at least 1 MOVE operation exists. Therefore, a simple optimization consists in **not** checking for cycles only if there are no move operations to propagate. This might considerably reduce the duration of the `OperationSorter` step for the very first synchronization of big drives.
diff --git a/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp b/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp index 26846a1d95..639dace9ec 100644 --- a/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp +++ b/src/libsyncengine/propagation/operatio...
2
1
0
[{"id": "G0", "claim": "Design a helper function, as a method or a lambda, that returns true if and only if there is at least one Move operation, instead of the inline three-way condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adapt uni...
null
Infomaniak__desktop-kDrive__1126
Infomaniak/desktop-kDrive
1,126
defect
11347e282f47fb7e647da7ed7a0888aaa463079a
50a937f1e3756f867b4c5801a604c244d8dd9855
Windows - Package signature check
Check the signature of the downloaded package before proceeding with the update. If the signature is considered as invalid, the update is aborted. - [x] Send a sentry alert
diff --git a/src/libcommon/utility/utility.cpp b/src/libcommon/utility/utility.cpp index 3a6b3bd1ff..f07d800a20 100644 --- a/src/libcommon/utility/utility.cpp +++ b/src/libcommon/utility/utility.cpp @@ -313,55 +313,87 @@ void CommonUtility::resetTranslations() { } bool CommonUtility::startsWith(const std::string &s...
8
7
0
[{"id": "G0", "claim": "The commented-out `// std::wstring errorMsg;` line should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `SourceLocation srcLoc;` declaration should be moved where the variable is initialized in a non-triv...
null
Infomaniak__desktop-kDrive__1141
Infomaniak/desktop-kDrive
1,141
defect
02ea6f3cc2cc4567dcbf27826bbf450453a5a83c
7453f45e07ec94e6b9a80bb37e3edb30f4ea19c0
Test PipeCommServer
Integrates the following cherry-picks from the 3.7.7 branch: a645fcecdf6f7e419f4a821e8dc8b3645ebc3355 f8410004018fcb390f0f88bf7af809c786985794 f625a138b819d6753aa3cf9e141011d13a7294c8
diff --git a/src/libsyncengine/jobs/abstractjob.h b/src/libsyncengine/jobs/abstractjob.h index 5a7739c02b..1d3a65e844 100644 --- a/src/libsyncengine/jobs/abstractjob.h +++ b/src/libsyncengine/jobs/abstractjob.h @@ -19,6 +19,7 @@ #pragma once #include "utility/types.h" + #include <Poco/Runnable.h> #include <log4...
2
2
0
[{"id": "G0", "claim": "The test loop count should be derived from the pipe instance count (2 * PIPE_INSTANCES) instead of the hardcoded 20 so connection reuse stays exercised.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The few Sonar issues flagged ...
null
Infomaniak__desktop-kDrive__1177
Infomaniak/desktop-kDrive
1,177
defect
32c1a9143b9fef155fb59a849b6e55fc3c6257eb
965878ab24b72dc951678e40b7ed2a0c0613ac64
Fix job manager logic for parallel download jobs
If too many syncs are running according to the number of CPU cores on the machine, the thread pool would be filled up with `LongPollJob` jobs. Since the download of a big file (> 100MB) start only if more than 50% of the job pool is available, they might never start. This PR modify the logic to run max 3 big downloa...
diff --git a/src/libsyncengine/jobs/syncjobmanager.cpp b/src/libsyncengine/jobs/syncjobmanager.cpp index bf9bfb63c5..ed3b983d10 100644 --- a/src/libsyncengine/jobs/syncjobmanager.cpp +++ b/src/libsyncengine/jobs/syncjobmanager.cpp @@ -45,20 +45,25 @@ bool isBigFileUploadJob(const std::shared_ptr<AbstractJob> job) { ...
1
1
0
[{"id": "G0", "claim": "The assertion should use uint64_t{3} instead of static_cast<uint64_t>(3), which is shorter.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Infomaniak__desktop-kDrive__1185
Infomaniak/desktop-kDrive
1,185
defect
53fe6b3587dbd117fc8015aa33faf5f6455fd576
fcd9a2c459e59d193f85731ef16b7f6c01f8c85b
Node id exists on both replica
In the rare cases where a same node ID exist on both replica, the sequence of operations could be altered in a way that makes it impossible to propagate them. Especially, an operation on a child item could be executed before creating its parent folder, leading the sync to fail. The correction involve checking that t...
diff --git a/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp b/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp index becd7f7903..d6a849f0bb 100644 --- a/src/libsyncengine/propagation/operation_sorter/operationsorterworker.cpp +++ b/src/libsyncengine/propagation/operatio...
1
1
0
[{"id": "G0", "claim": "The new doc comment for getOpIdsFromNodeId should be reworded so it says the side is provided to distinguish between identical IDs on the local and remote replicas.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Infomaniak__desktop-kDrive__1193
Infomaniak/desktop-kDrive
1,193
defect
ad66ec648fb031d5625d98f1cf0efc4c1e2d3678
37a8ed6abe3cfa03bc864a1aaed8067de1915906
Crash server - Blacklist item during sync restart
During a sync restart after a DataError, the localFileSystemObserverWorker continues to run and in case of AccessDenied, the handleAccessDeniedItem method is called which accesses the updateTree while it is destroyed/recreated by the sync restart.
diff --git a/src/libcommon/utility/utility.cpp b/src/libcommon/utility/utility.cpp index be2b1f4619..c719badeed 100644 --- a/src/libcommon/utility/utility.cpp +++ b/src/libcommon/utility/utility.cpp @@ -106,7 +106,7 @@ static std::default_random_engine gen(rd()); std::string CommonUtility::generateRandomString(const...
1
1
1
[{"id": "G0", "claim": "A static mutex accessible anywhere in the code carries high risk of deadlock and/or performance impact; the algorithm should be refactored so that only the running module accesses and modifies the update trees instead of exposing the mutex.", "category": "design", "verdict": "supported", "priori...
null
Infomaniak__desktop-kDrive__1216
Infomaniak/desktop-kDrive
1,216
defect
65c4b9c5656090b2657c8dfe4dcd2adb793359f3
c57b26a3477831a30536943e73156f798fb41cb8
Manage deleted drive
When a drive was deleted, if a desktop app was synchronizing it, the app started to send lots of `listing/full` request to the backend, creating a lot of load. This PR aims at stopping the sync immediately after receiving a 404 error about a drive. It also makes sure the `Accept` header is now sent on every requests
diff --git a/src/libsyncengine/CMakeLists.txt b/src/libsyncengine/CMakeLists.txt index 9b3c9e28f03..878714168bf 100644 --- a/src/libsyncengine/CMakeLists.txt +++ b/src/libsyncengine/CMakeLists.txt @@ -38,6 +38,7 @@ set(syncengine_SRCS jobs/network/infomaniak_API/getappversionjob.h jobs/network/infomaniak_API/getap...
5
5
2
[{"id": "G0", "claim": "The commented-out members _errorCode and _errorDescr in AbstractNetworkJob should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In backerror.h, the word 'infomaniak' in the class documentation comment should ...
null
Infomaniak__desktop-kDrive__1290
Infomaniak/desktop-kDrive
1,290
defect
2dda6184607521caea6bfc435216e85ee78de2d0
ca3a45225af94de8d1f7b82d51a3a5f554ded59a
WinUI3 fix paramaters update info implementation
Original PR -> https://github.com/Infomaniak/desktop-kDrive/pull/1288 I renamed the branch and merged develop into it to allow the unit tests to succeed.
diff --git a/src/gui4/windows/kDrive client/kDrive client/CustomControls/AppNavigationView.xaml.cs b/src/gui4/windows/kDrive client/kDrive client/CustomControls/AppNavigationView.xaml.cs index 0e266e0d08..961bc78b28 100644 --- a/src/gui4/windows/kDrive client/kDrive client/CustomControls/AppNavigationView.xaml.cs +++ ...
3
3
1
[{"id": "G0", "claim": "The darkTheme field is written unconditionally in toDynamicStruct but read only under KD_MACOS in fromDynamicStruct, so on non-macOS platforms the field is written but never read back, potentially causing data inconsistency; wrap the write in the same ifdef or drop the platform restriction from ...
null
Infomaniak__desktop-kDrive__1293
Infomaniak/desktop-kDrive
1,293
defect
490f61b82a480646f9b0148b58f1ec3b6ca9e939
ad7e9e2aca437c4db81adb1ea27e6431670b0a58
Gui jobs send logs
UTILITY_SEND_LOG_TO_SUPPORT UTILITY_CANCEL_LOG_TO_SUPPORT UTILITY_GET_LOG_ESTIMATED_SIZE
diff --git a/src/libparms/db/error.cpp b/src/libparms/db/error.cpp index f804a2605a..0e75c822eb 100644 --- a/src/libparms/db/error.cpp +++ b/src/libparms/db/error.cpp @@ -79,7 +79,6 @@ Error::Error(int64_t dbId, int64_t time, ErrorLevel level, const std::string &fu InconsistencyType inconsistencyType, Can...
3
3
0
[{"id": "G0", "claim": "The two blacklisted gui-job source listings in src/server/CMakeLists.txt should be placed above comm/guijobs/nodeinfojob.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "UtilitySendLogToSupportJob::deserializeInputParm...
null
Infomaniak__desktop-kDrive__1316
Infomaniak/desktop-kDrive
1,316
defect
5339bba0f38e2e6a39a966f32f7391bcff9d3582
fd6d9dabb643b06fefe25b83e7d62e361a27b6fe
Implement exists request
A lighter request exists in the kDrive API to check file existance. This PR aims at using it to check file existance in `LocalDeleteJob` and fallback to the existing method if the file still exist on remote replica. Depends on #1333
diff --git a/src/libcommon/utility/cstypes.h b/src/libcommon/utility/cstypes.h index 1b9b32f4db..1d5e33447b 100644 --- a/src/libcommon/utility/cstypes.h +++ b/src/libcommon/utility/cstypes.h @@ -135,6 +135,7 @@ enum class ExitCause { FileOrDirectoryCorrupted, TmpDirAccessError, UpdateTreeIntegrityCheckFa...
5
4
1
[{"id": "G0", "claim": "FileExistsJob::Status makes EXISTS equal 0, so `!existsJob.exists(_remoteNodeId)` in LocalDeleteJob::canRun early-exits exactly when the item does exist remotely — the opposite of the intended behaviour — and exists() should return the result through a bool out-parameter instead of encoding it i...
null
Infomaniak__desktop-kDrive__1333
Infomaniak/desktop-kDrive
1,333
defect
b8222894bcfbbd2318081a536ee5c7b27bcb5441
014072ee6701bac4ba20cdd65677b0ff226f0505
Propagate each delete to db
The `LocalDeleteJob` will delete all dehydrated placeholders individually. This PR aims at propagate each delete to the DB immediately.
diff --git a/src/libsyncengine/jobs/local/localdeletejob.cpp b/src/libsyncengine/jobs/local/localdeletejob.cpp index 6a62c113bb..0370ba4f9e 100644 --- a/src/libsyncengine/jobs/local/localdeletejob.cpp +++ b/src/libsyncengine/jobs/local/localdeletejob.cpp @@ -59,17 +59,18 @@ bool LocalDeleteJob::matchRelativePaths(const...
4
4
0
[{"id": "G0", "claim": "There is no meaningful scenario in which the `syncPal` parameter may or should be nullptr, so the nullable design of LocalDeleteJob is questionable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parameter of LocalDeleteJob::d...
null
Infomaniak__desktop-kDrive__1336
Infomaniak/desktop-kDrive
1,336
defect
d24a581de77f22df0ed123cd33615f7619f9f8df
131963125640dfeda271466245619b901919ec8d
Test file creation in dedicated subfolder
In order to make sure that a file name is supported by the system, the app tries to create a file with the same name in the tmp directory and then removes it. To avoid name clashes in the device's tmp directory, we should create those files in a dedicated subdirectory generated by kDrive.
diff --git a/src/libcommonserver/io/iohelper.cpp b/src/libcommonserver/io/iohelper.cpp index c9061860b5..efd31ac909 100644 --- a/src/libcommonserver/io/iohelper.cpp +++ b/src/libcommonserver/io/iohelper.cpp @@ -615,7 +615,7 @@ bool IoHelper::getDirectorySize(const SyncPath &path, uint64_t &size, IoError &i return ...
4
3
2
[{"id": "G0", "claim": "In the rare case where an entry already exists in the kDrive-tmp directory (e.g. after a crash between creation and deletion, a user moving files there, or a bug), add a mechanism to handle it, such as creating the item under a random name with a limited number of retries (e.g. 3 attempts).", "c...
null
Infomaniak__desktop-kDrive__1346
Infomaniak/desktop-kDrive
1,346
defect
7d99f44d2ce06a75d980a58c7ad79633ae7d8792
17a7de93a962fb773b27c8d3ffab01f1556587a8
feat(guijob): add job to query best available VFS mode
Introduce UtilityBestVfsAvailableModeJob to determine the best VFS mode for a given path, with checks for NTFS/APFS support.
diff --git a/src/gui/guirequests.cpp b/src/gui/guirequests.cpp index b5ed94fb87..9cdd8d243b 100644 --- a/src/gui/guirequests.cpp +++ b/src/gui/guirequests.cpp @@ -672,7 +672,7 @@ ExitCode GuiRequests::deleteSync(const int syncDbId) { ExitCode GuiRequests::bestAvailableVfsMode(VirtualFileMode &mode) { QByteArray...
9
7
2
[{"id": "G0", "claim": "A comma is missing after the last entry shown, which will cause a compilation error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The variable 'activateLoadInfoJob' is misleading because it holds an UtilityBestVfsAvailableM...
null
Infomaniak__desktop-kDrive__1354
Infomaniak/desktop-kDrive
1,354
defect
5f999c6e58c61c7f358c319f18d197f9552a9d73
5b2436cf39e663452538486a2797efe1d0a293f5
feat(guijob): add job to validate a sync path for a new sync
This pull request introduces a new utility for validating sync folder paths and simplifies the logic for finding a suitable local sync folder path by removing the dependency on drive IDs. The changes include the addition of a new job to check if a path is valid for a new sync, refactoring of related methods to remove u...
diff --git a/src/gui/adddrivewizard.cpp b/src/gui/adddrivewizard.cpp index f4109e8897e..356b32b42a6 100644 --- a/src/gui/adddrivewizard.cpp +++ b/src/gui/adddrivewizard.cpp @@ -191,7 +191,7 @@ void AddDriveWizard::startNextStep(bool backward) { } QString goodLocalFolderPath; QString error; - ...
11
10
1
[{"id": "G0", "claim": "The new function name is misspelled \"isPathVAlidForNewSync\" and should be \"isPathValidForNewSync\" in the declaration, definition and call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When checkPathValidityForN...
null
Infomaniak__desktop-kDrive__1379
Infomaniak/desktop-kDrive
1,379
defect
676876432f038ab179d589b523126c741fff2c5a
494d6928abd2a07337399e4938f4f043443e0269
Remove show in explorer navigation pane parameter
`showInExplorerNavigationPane` should be removed in order to prepare for the graphic redesign.
diff --git a/src/gui/appclient.cpp b/src/gui/appclient.cpp index 7c6a508424..b9bcd4e812 100644 --- a/src/gui/appclient.cpp +++ b/src/gui/appclient.cpp @@ -182,14 +182,6 @@ AppClient::AppClient(int &argc, char **argv) : // Cleanup at Quit connect(this, &QCoreApplication::aboutToQuit, this, &AppClient::onCleanu...
4
2
0
[{"id": "G0", "claim": "Even though the showShortcuts field should never be read again, the DB entries it inserts/updates should be bound to true, the new default value, pending migration, rather than false.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
Infomaniak__desktop-kDrive__1383
Infomaniak/desktop-kDrive
1,383
defect
d3dcf66d51a200a7b9e7b3d4803b75b26b0a5edf
71e0db6bc2409b2c7699310278509b6e8f9cd561
fix: reinforce update tree integrity check
The log from a bug report revealed that, in some cases which are not elucidated yet, the update tree can contain references to temporary nodes: ``` 2025-12-27 13:23:26:509 [I] (127564) tmpblacklistmanager.cpp:41 - *2* Item added in error list - node ID='tmp_0AbsDzLMTc' - side='Remote(2)' - path='<item_path>' 2025-12...
diff --git a/src/libsyncengine/update_detection/update_detector/updatetreeworker.cpp b/src/libsyncengine/update_detection/update_detector/updatetreeworker.cpp index 422e177ed1..6c2a6d4109 100644 --- a/src/libsyncengine/update_detection/update_detector/updatetreeworker.cpp +++ b/src/libsyncengine/update_detection/update...
2
2
0
[{"id": "G0", "claim": "The accessor `_updateTree->nodes()` is misleading because the map it returns does not contain all the nodes of the update tree, so renaming it to convey 'valid nodes' (e.g. `_validNodes`) would make the new parent-node integrity check clearer.", "category": "maintainability", "verdict": "support...
null
Infomaniak__desktop-kDrive__1400
Infomaniak/desktop-kDrive
1,400
defect
b5c8f659627cdac0af64a8ebfc8229d3eb4bbf17
9e8d894425cfd46c9dcad5b96445306ffadd1464
feat(search): enrich SearchInfo with file metadata
Added path, modifiedTime, size, and isAvailableLocally fields to SearchInfo. SearchJob and DriveSearchJob now support these fields, enabling richer and more contextual search results, including local availability checks. Tests updated accordingly.
diff --git a/src/libcommon/info/searchinfo.cpp b/src/libcommon/info/searchinfo.cpp index dbef18e88e..cb1ecea117 100644 --- a/src/libcommon/info/searchinfo.cpp +++ b/src/libcommon/info/searchinfo.cpp @@ -22,34 +22,62 @@ static const auto searchInfoId = "id"; static const auto searchInfoName = "name"; static const aut...
5
5
2
[{"id": "G0", "claim": "The SearchInfo emplace_back call in SearchJob::handleResponse omits the computed isAvailableLocally parameter, so local availability information will not be included in search results; add it as the 7th parameter.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
Infomaniak__desktop-kDrive__1432
Infomaniak/desktop-kDrive
1,432
defect
8fa0c81bcaa8a99ff81d8affbaf12a6f60859842
16213b9522e5f6929e57eb905da318ee3d427299
feat(logs): add log upload with progress tracking
Implements log upload to support with progress/state tracking in WinUI project Success: https://github.com/user-attachments/assets/f47595c7-a7d3-4c10-bbe2-827f33ce591d Cancelled: https://github.com/user-attachments/assets/9af3f4ca-238b-4ddb-89c6-88542970cb16 Error: https://github.com/user-attachments/...
diff --git a/src/gui/guirequests.cpp b/src/gui/guirequests.cpp index 6fc1292940..2b42bef36e 100644 --- a/src/gui/guirequests.cpp +++ b/src/gui/guirequests.cpp @@ -740,7 +740,7 @@ ExitCode GuiRequests::updateAppState(const AppStateKey key, const AppStateValue ExitCode GuiRequests::getLogDirEstimatedSize(uint64_t &siz...
3
2
0
[{"id": "G0", "claim": "The GuiJobFactory map registers UTILITY_SEND_LOG_TO_SUPPORT, UTILITY_CANCEL_LOG_TO_SUPPORT and UTILITY_GET_LOG_ESTIMATED_SIZE_LEGACY twice, so the duplicate entries are redundant and one of each pair should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s...
null
Infomaniak__desktop-kDrive__1433
Infomaniak/desktop-kDrive
1,433
defect
8fa0c81bcaa8a99ff81d8affbaf12a6f60859842
b7694caaabf7293607542bd851ef88c08c7e00c1
feat: generalize the job priority system
This PR generalizes a priority system for jobs in the sync engine. ## Changes ### Core Functionality - Added `_jobPriority` attribute to `AbstractJob` (default: `PRIO_NORMAL`) - Added getter (`jobPriority()`) and setter (`setJobPriority()`) methods - Added overloaded `queueAsyncJob(job)` method that uses job's int...
diff --git a/src/libsyncengine/jobs/abstractjob.h b/src/libsyncengine/jobs/abstractjob.h index 1d3a65e844..3b469e48af 100644 --- a/src/libsyncengine/jobs/abstractjob.h +++ b/src/libsyncengine/jobs/abstractjob.h @@ -21,6 +21,7 @@ #include "utility/types.h" #include <Poco/Runnable.h> +#include <Poco/Thread.h> #inc...
1
1
0
[{"id": "G0", "claim": "Rewrite the JobManager::queueAsyncJob definition signature onto a single line and drop the stale /*= Poco::Thread::PRIO_NORMAL*/ default-value comment left behind when the default parameter was removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
Infomaniak__desktop-kDrive__1450
Infomaniak/desktop-kDrive
1,450
defect
5dcdfab37f0d3397a2ad9344ee3dae0a0448080b
ffa8c6056b66bcda72fb4ba5f3b0d8e23dbcef9a
Fix mac freeze due to lite sync2
This PR implements 2 features: - Free the fetch thumbnail processes after 60 seconds if they are not finished yet. - Free all processes stopped by the LiteSync on sync start and stop. Also, the parameter `unregister` has been removed from the method `AppServer::stopVfs` meaning that the LiteSync will stop watching...
diff --git a/extensions/MacOSX/kDriveLiteSync/Extension/xpcLiteSyncExtensionProtocol.h b/extensions/MacOSX/kDriveLiteSync/Extension/xpcLiteSyncExtensionProtocol.h index 9ff53e0d26..c7e1bf93e9 100644 --- a/extensions/MacOSX/kDriveLiteSync/Extension/xpcLiteSyncExtensionProtocol.h +++ b/extensions/MacOSX/kDriveLiteSync/Ex...
9
9
4
[{"id": "G0", "claim": "The temporary \"TEST_CK\" debug log statement in fetchFile should be removed before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dispatch timer cannot be cancelled once scheduled, so timers accumulate until...
null
Infomaniak__desktop-kDrive__1484
Infomaniak/desktop-kDrive
1,484
defect
aa4a5394d58ad2322ad09ceb211ff112a146005c
c05940eebb5673128d9d88f9249fce1578d72b13
Check min os version before update
Do not show available updates if the OS version is too old. Depends on #1482
diff --git a/src/libcommon/utility/utility.cpp b/src/libcommon/utility/utility.cpp index 6311d4557b..f432658067 100644 --- a/src/libcommon/utility/utility.cpp +++ b/src/libcommon/utility/utility.cpp @@ -1034,10 +1034,6 @@ bool CommonUtility::isVersionLower(const std::string &currentVersion, const std: std::vector<...
8
7
0
[{"id": "G0", "claim": "Where the PR removed the version-size equality check in isVersionLower, it would be worth logging or asserting (LOG_IF_FAIL/assert) instead of silently falling through.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In extractO...
null
Infomaniak__desktop-kDrive__1513
Infomaniak/desktop-kDrive
1,513
defect
f25824ab6588a37872a04b3f8d35df092ac1235b
f473ea9accd99008b4b77dca70a971c677c0dcdc
SyncGetPrivateLinkUrl job update
Change fileId to nodeId in SYNC_GETPRIVATELINKURL job.
diff --git a/src/gui/clientgui.cpp b/src/gui/clientgui.cpp index 3b45603cd9..c7c0328392 100644 --- a/src/gui/clientgui.cpp +++ b/src/gui/clientgui.cpp @@ -799,6 +799,8 @@ void ClientGui::onShowWindowsUpdateDialog(const VersionInfo &versionInfo) const if (!lock.owns_lock()) return; #if defined(KD_MACOS) // On...
1
1
0
[{"id": "G0", "claim": "The `&` the pull request adds to the structured binding makes `syncPal` a reference to the `shared_ptr`, which should be avoided because it defeats the benefit of `shared_ptr` and brings no real gain.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Infomaniak__desktop-kDrive__1572
Infomaniak/desktop-kDrive
1,572
defect
d13a43fdbc77b1730dbf04202d462d1627d2f426
812092a891b3ab2767cee5f3e300f28a8cfcb5ff
feat(conflict): fetch additional information on conflicts
depends on #1567 ## Summary Enhances metadata handling for conflicts by introducing new API v3 jobs and structures for retrieving **file information** and **drive user details**, and by adding a **NodeConflictInfo** model. ## Changes ### User & Drive Information - Added `GetDriveUserInfoJob` to fetch **user ...
diff --git a/src/libcommon/CMakeLists.txt b/src/libcommon/CMakeLists.txt index c81e46be133..ebd59dcc683 100644 --- a/src/libcommon/CMakeLists.txt +++ b/src/libcommon/CMakeLists.txt @@ -36,6 +36,7 @@ set(libcommon_SRCS info/driveavailableinfo.h info/driveavailableinfo.cpp info/syncinfo.h info/syncinfo.cpp ...
11
6
1
[{"id": "G0", "claim": "Remove unused includes (guijobmanager.h, Poco/Net/HTTPResponse.h) from nodeconflictinfojob.cpp to reduce build time and avoid dependency coupling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The internal field-key cons...
null
Infomaniak__desktop-kDrive__1587
Infomaniak/desktop-kDrive
1,587
defect
d0cab4fc5ab18178ad844355d6818a0414119c9e
e6a4ae48848357a4a4104f009547439625e6be37
fix(unit-tests): Fixes the `isInTrash` Linux implementation
This pull-request re-implements on Linux the helper function `IoHelper::isInTrash` that checks whether an item is located in the user trash in a reliable way. This new implementation follows the [Freedesktop specifications](https://specifications.freedesktop.org/trash/latest/). This helper is used in unit tests to che...
diff --git a/src/libcommonserver/io/iohelper_linux.cpp b/src/libcommonserver/io/iohelper_linux.cpp index ce31064058..3f5f051ed2 100644 --- a/src/libcommonserver/io/iohelper_linux.cpp +++ b/src/libcommonserver/io/iohelper_linux.cpp @@ -38,6 +38,8 @@ #include <Poco/File.h> #include "utility/utility.h" +#include <QFil...
1
1
0
[{"id": "G0", "claim": "Use a named constant string for the \"Path=\" key and take its length instead of the hardcoded \"Path=\" literal and the magic number 5 in getOriginalPath.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Infomaniak__desktop-kDrive__1609
Infomaniak/desktop-kDrive
1,609
defect
b01cdc55a28b8dddb9ec7d3cfe84efc27c61659d
9f0918f3feeb8ed1f2440b36942d244a992b7616
fix: invalid abstract token network job cache
## Summary When a user is deleted via `ServerRequests::deleteUser`, all related `accounts / drives / syncs` are removed **directly by database cascade** (foreign keys). Because of this, `ServerRequests::deleteDrive` is **not called**, which means the `AbstractTokenNetworkJob` cache is not cleaned. As a result,...
diff --git a/src/libsyncengine/jobs/network/abstracttokennetworkjob.cpp b/src/libsyncengine/jobs/network/abstracttokennetworkjob.cpp index 0c8eb1d2f0..813e227c9e 100644 --- a/src/libsyncengine/jobs/network/abstracttokennetworkjob.cpp +++ b/src/libsyncengine/jobs/network/abstracttokennetworkjob.cpp @@ -84,6 +84,7 @@ Exi...
2
1
1
[{"id": "G0", "claim": "The newly declared static member `_cacheMutex` has no definition in abstracttokennetworkjob.cpp, which will cause an undefined symbol / linker error; define it in the .cpp or make it `inline static`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {...
null
Infomaniak__desktop-kDrive__1614
Infomaniak/desktop-kDrive
1,614
defect
b01cdc55a28b8dddb9ec7d3cfe84efc27c61659d
e76c3f44c17c36c4234ea1ac8e418ab82d1f955a
fix: missing items in remote snapshot after move operations
## Summary Fixes an issue where moved items could be missing in the remote snapshot after move operations. ## Changes - **Fix**: Keep track of moved items using an `std::unordered_map` instead of a set to properly handle MoveIn/MoveOut actions - **Refactor**: Extract utility methods (`keepTrackOfMovedItem`, `remo...
diff --git a/src/libsyncengine/update_detection/file_system_observer/remotefilesystemobserverworker.cpp b/src/libsyncengine/update_detection/file_system_observer/remotefilesystemobserverworker.cpp index c2a3769392..5371e72480 100644 --- a/src/libsyncengine/update_detection/file_system_observer/remotefilesystemobserverw...
3
3
0
[{"id": "G0", "claim": "removeItemFromSnapshot should return ExitCode::Ok directly when the item is removed, restructuring the success path to come first.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The verbose unordered_map<NodeId, ActionCode, ...> p...
null
Infomaniak__desktop-kDrive__1639
Infomaniak/desktop-kDrive
1,639
defect
ede20a8e874e034ff2acabf2aabe2fb0a96bbdbb
f27311e6a28ec6edda018d87b937e39cefa967db
refactor(api): rework createMissingFolders request handling
Refactor the `createMissingFolders` logic to use a new structured API. - Replace `NODE_CREATEMISSINGFOLDERS` with `NODE_CREATEMISSINGFOLDERS_LEGACY`. - Switch input parameters from a folder list to `userDbId`, `driveId`, `parentNodeId`, and `relativePath`. - Simplify server-side processing by removing `FolderItem...
diff --git a/src/gui/guirequests.cpp b/src/gui/guirequests.cpp index d2ea1e55dfe..a62f10f626e 100644 --- a/src/gui/guirequests.cpp +++ b/src/gui/guirequests.cpp @@ -836,7 +836,7 @@ ExitCode GuiRequests::createMissingFolders(int driveDbId, const QList<QPair<QStr paramsStream << serverFolderList; QByteArray r...
11
9
5
[{"id": "G0", "claim": "NodeCreateMissingFoldersJob still registers RequestNum::NODE_CREATEMISSINGFOLDERS while the GUI client and AppServer have been updated to handle NODE_CREATEMISSINGFOLDERS_LEGACY and the test file uses the non-legacy request number, which will prevent requests from being properly routed and proce...
null
Infomaniak__desktop-kDrive__1643
Infomaniak/desktop-kDrive
1,643
defect
409ca43c7b966fb34b3be859f46d60d3c779437c
e64088bc9ab4aa9fa4a86a85771925239d21bfe7
feat(sync): add isAdvancedSync param for folder validation
depends on #1639 ## ✨ Overview This PR refactors folder creation and improves sync path validation, mainly to better support **advanced sync scenarios** and missing folders. --- ## 📁 Folder Creation * Reworked the *create missing folders* flow * Introduced a new request (`NODE_CREATEMISSINGFOLDERS_LEG...
diff --git a/src/gui4/windows/kDrive client/kDrive client/CustomControls/DriveSetupContentDialog/DialogPages/SyncExclusionPage.xaml.cs b/src/gui4/windows/kDrive client/kDrive client/CustomControls/DriveSetupContentDialog/DialogPages/SyncExclusionPage.xaml.cs index 6b6e72868c9..20b1e12203e 100644 --- a/src/gui4/windows/...
11
8
2
[{"id": "G0", "claim": "deserializeInputParms() now requires the isAdvancedSync key, so existing clients that send only path (e.g. the macOS GUI4 UtilityIsPathValidForNewSyncQuery) will trigger Poco::InvalidAccessException and the job returns ExitCode::LogicError; the key should be treated as optional (or the request v...
null
InfuseAI__piperider__129
InfuseAI/piperider
129
defect
9ae48abd55b34d9e7df0d670b918e810c34d7d26
c93ff1ad92c1ceaa6c6e7be9c82918d099cfded3
Fix run all assertions when given specified table
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> <!-- Thanks for sending a pull request! Here are some check items for you: --> ** PR checklist ** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** 1. When given a specified table, Pipe...
diff --git a/piperider_cli/assertion_engine/assertion.py b/piperider_cli/assertion_engine/assertion.py index f737ee9d2..8ea824b72 100644 --- a/piperider_cli/assertion_engine/assertion.py +++ b/piperider_cli/assertion_engine/assertion.py @@ -7,6 +7,10 @@ from ruamel.yaml.comments import CommentedMap, CommentedSeq +...
1
1
0
[{"id": "G0", "claim": "The `set(table.lower() for table in list(self.profiler.metadata.tables))` expression should be extracted before the assertion-loading for-loop, since its result does not change during the loop.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
InfuseAI__piperider__363
InfuseAI/piperider
363
defect
18541a38ecaba8b42fbad93c0508860e8ae8670a
1c3d84bfc7dc0cdd5aedfeabf257fd344171b74e
[Feature] enhance piperider configuration files
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> <!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we...
diff --git a/piperider_cli/assertion_engine/assertion.py b/piperider_cli/assertion_engine/assertion.py index de27e1996..e3c491ae3 100644 --- a/piperider_cli/assertion_engine/assertion.py +++ b/piperider_cli/assertion_engine/assertion.py @@ -37,10 +37,20 @@ def round_trip_load_yaml(file_path): return payload -d...
2
2
1
[{"id": "G0", "claim": "Use positive tests in the if condition when loading the optional config path, as it improves code readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When config.yml already exists and users are only asked to fill...
null
InfuseAI__piperider__475
InfuseAI/piperider
475
defect
d92d727cb30de2372905af405e16b5a5c61bb633
4fa5635f8de83560533ab65f3687dadaeea65702
[Feature] make the assertions more flexible to configure
<!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we need it**: - enable users to configure flexible metric...
diff --git a/piperider_cli/assertion_engine/assertion.py b/piperider_cli/assertion_engine/assertion.py index 388ba054d..6f171cb42 100644 --- a/piperider_cli/assertion_engine/assertion.py +++ b/piperider_cli/assertion_engine/assertion.py @@ -96,6 +96,34 @@ def require(self, name: str, specific_type=None): ...
2
2
1
[{"id": "G0", "claim": "For an empty table, the CLI should not print an exception when the profiled metric is None.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the assertion configuration is not valid, the CLI should show more readable informa...
null
InfuseAI__piperider__482
InfuseAI/piperider
482
defect
14b7c50fb0b6ebc2a703fb2737ff2eb94f890d01
e8c551bf3d57838b0a52caeb8a64db01a8c31422
[Feature] Refine assertion result entry and location
<!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we need it**: - move assertion results location in `run.j...
diff --git a/piperider_cli/adapter/dbt_adapter.py b/piperider_cli/adapter/dbt_adapter.py index 315a04bd9..7ff13c9f2 100644 --- a/piperider_cli/adapter/dbt_adapter.py +++ b/piperider_cli/adapter/dbt_adapter.py @@ -236,7 +236,7 @@ def run_dbt_command(self, table, default_schema): run_results = self.adaptee.get...
1
1
1
[{"id": "G0", "claim": "The `table`, `column`, `metric`, `message` and `display_name` keys should not be included in a test entry when their value is null, as illustrated by the sample run.json entry.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
InfuseAI__piperider__486
InfuseAI/piperider
486
defect
2a9782112b36cf9ecd031a1c0a89464c22eb70d8
c8bfc051069a566095783aef8fe408d89da5f1a2
[Feature] Add column value in set assertion
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> Co-authored-by: Timothy Lee <ctiml@infuseai.io> Co-authored-by: popcorny <celu@infuseai.io> <!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your ...
diff --git a/piperider_cli/assertion_engine/assertion.py b/piperider_cli/assertion_engine/assertion.py index b29c14825..10f759dbe 100644 --- a/piperider_cli/assertion_engine/assertion.py +++ b/piperider_cli/assertion_engine/assertion.py @@ -8,6 +8,8 @@ from deepmerge import always_merger from ruamel import yaml from...
5
3
2
[{"id": "G0", "claim": "When the assert_column_value in-set check fails, the assertion result's `actual` should say which value is not in the set.", "category": "usability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Test execution should give console feedback via a progres...
null
InfuseAI__piperider__490
InfuseAI/piperider
490
defect
190170c1b214ac6607092ce2ce395dedb3495b99
a22abf4fafb83d7b89bc2616fed3b1f729385859
[Feature] Duplicate assertion test result for backward compatible
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> <!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we...
diff --git a/piperider_cli/adapter/dbt_adapter.py b/piperider_cli/adapter/dbt_adapter.py index 011584ca3..125bc7919 100644 --- a/piperider_cli/adapter/dbt_adapter.py +++ b/piperider_cli/adapter/dbt_adapter.py @@ -237,6 +237,7 @@ def run_dbt_command(self, table, default_schema): run_results = self.adaptee.get_r...
1
1
1
[{"id": "G0", "claim": "Because `piperider_assertion_result` and `dbt_assertion_result` exist for backward compatibility, they should not reference the latest `assertion_test` definition; a new `legacy_assertion_test` definition holding the old schema values should be added and referenced instead.", "category": "correc...
null
InfuseAI__piperider__53
InfuseAI/piperider
53
defect
6c7ac913e602efd376bead58ab5e979fc0a26413
0d6b1acf2f71d4fad01d656c9ead56f7c9e932ce
Support user-defined test function
### User-defined test function Users can put their implementation to evaluate metrics results. Look at this example: ```yaml tests: - name: module_name.function_name assert: param1: 1 param2: 2 ``` The `name` in a test is `module_name` `.` `function_name`. It means users provide a `module_name....
diff --git a/docs/user-defined-test-function.md b/docs/user-defined-test-function.md new file mode 100644 index 000000000..f991651e7 --- /dev/null +++ b/docs/user-defined-test-function.md @@ -0,0 +1,145 @@ +# User defined test function + +In addition to builtins assertion function, PipeRider also supports adding custom...
1
1
0
[{"id": "G0", "claim": "Instead of deriving `default_plugins_dir` from `assertion_search_path`, the plugin directory should be hard-coded as a `PIPERIDER_ASSERTION_PLUGIN_PATH` constant (`os.path.join(os.getcwd(), PIPERIDER_WORKSPACE_NAME, 'plugin')`), with the assertion_search_path assigned in the AssertionEngine cons...
null
InfuseAI__piperider__545
InfuseAI/piperider
545
defect
ad706c1160e5d73abac1d0b3cb49e6be0a0d6471
896e37bc1b2a5f8691d44ef46dfd6f7dbdb0f68f
[Feature] Support view profiling
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io> <!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we...
diff --git a/piperider_cli/configuration.py b/piperider_cli/configuration.py index c62de7e91..9d5608136 100644 --- a/piperider_cli/configuration.py +++ b/piperider_cli/configuration.py @@ -38,6 +38,7 @@ def __init__(self, dataSources: List[DataSource], **kwargs): self.profiler_config = kwargs.get('profiler', {...
3
3
0
[{"id": "G0", "claim": "View names should be appended to the `table_names` list (so they flow through the same subject-building path) instead of being appended as separate subjects.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the config option ...
null
InfuseAI__piperider__57
InfuseAI/piperider
57
defect
9e627515840b0afa2b8cbdb40310975e5ff502c7
1ba38e4b98a6bc47fcebc5cd70fd3e46ab6783fd
Add built-in tests
1. column_not_null 2. column_null 3. column_exist 4. column_in_types 5. column_unique
diff --git a/piperider_cli/assertion_engine/__init__.py b/piperider_cli/assertion_engine/__init__.py index 1dc296e92..9e1bdb97e 100644 --- a/piperider_cli/assertion_engine/__init__.py +++ b/piperider_cli/assertion_engine/__init__.py @@ -45,6 +45,25 @@ def assert_column_type(context: AssertionContext, table: str, column...
1
1
0
[{"id": "G0", "claim": "Suggest creating a dedicated `metric_not_found_error` or `metric_missing_error` instead of returning `fail_with_syntax_error()` when the column's metrics cannot be found in `assert_column_in_types`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
InfuseAI__piperider__572
InfuseAI/piperider
572
defect
6007005beab5210badfad3ee3e31ae91ca46f441
f9f867b3263f16be791276a25fdf13a6070602cf
[Feature] support dbt with multiple databases
resolve #556 If a dbt model uses custom databases, we now support to profile this model rather than skipping it. **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** Feature **What this PR does / why we need it**: **Whic...
diff --git a/piperider_cli/datasource/__init__.py b/piperider_cli/datasource/__init__.py index 286d29948..71a82553b 100644 --- a/piperider_cli/datasource/__init__.py +++ b/piperider_cli/datasource/__init__.py @@ -1,6 +1,7 @@ import os import re import sys +import threading from abc import ABCMeta, abstractmethod f...
3
3
1
[{"id": "G0", "claim": "The `type_name: str` type hint should be placed in the constructor parameter instead of as a class-level annotation.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The DuckDB `create_engine` overrides changed `database` to a requi...
null
InfuseAI__piperider__754
InfuseAI/piperider
754
defect
11a6811935e06ee352b2ae025eec4e5ee843303e
11c2eae4ffcc31126141510b75d5637efad0912a
[Feature] sc-31688 PipeRider run support `--select state:modified+`
<!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** Feature **What this PR does / why we need it**: - Rename run command option `--dbt-state` ...
diff --git a/piperider_cli/cli.py b/piperider_cli/cli.py index a08eb6029..9a54467ab 100644 --- a/piperider_cli/cli.py +++ b/piperider_cli/cli.py @@ -180,7 +180,7 @@ def diagnose(**kwargs): metavar='TABLE_NAME') @click.option('--output', '-o', default=None, type=click.STRING, help='Directory to save the ...
1
1
1
[{"id": "G0", "claim": "Please include the PR's new tests (tests/test_dbt_util.py) in the .github/workflows/dbt-compatible-tests.yaml workflow so they run there.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
InfuseAI__piperider__892
InfuseAI/piperider
892
defect
b5da04117946e34416938b9a27d7fd47c55052c3
d64f0d3126706dae6727424364ca34d2f0f3f367
[Feature] Show disclaimer if report from manifest
<!-- Thanks for sending a pull request! Here are some check items for you: --> **PR checklist** - [x] Ensure you have added or ran the appropriate tests for your PR. - [x] DCO signed **What type of PR is this?** feature **What this PR does / why we need it**: - need disclaimer to hint user when reports...
diff --git a/piperider_cli/profiler/schema.json b/piperider_cli/profiler/schema.json index f27efbba8..3eb5f7871 100644 --- a/piperider_cli/profiler/schema.json +++ b/piperider_cli/profiler/schema.json @@ -388,6 +388,9 @@ }, "git_sha": { "type": "string" + }, + "skip_datasource...
3
3
1
[{"id": "G0", "claim": "Make the schema_type an empty string for manifest-generated columns so the report can show '-' (NO_VALUE) when the schema type is an empty string (not fetched from a data warehouse).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
InsForge__InsForge__1041
InsForge/InsForge
1,041
defect
8db1d496b26a50538bc0d7d0ad9f246b03eb84c2
b0c96862c8c10a1da9ea0ac96fe8c083fa9f9326
fix(security): block DDL/DML on system schema in raw SQL editor
## Summary Adds checkSystemSchemaOperations() to the SQL parser that blocks destructive operations on the system schema via the raw SQL editor. This prevents users from overwriting shared system trigger functions (e.g. system.update_updated_at()) which would silently break every table that depends on them. **Blocke...
diff --git a/backend/src/services/database/database-advance.service.ts b/backend/src/services/database/database-advance.service.ts index d8a02959f2..94886b7f7d 100644 --- a/backend/src/services/database/database-advance.service.ts +++ b/backend/src/services/database/database-advance.service.ts @@ -9,7 +9,11 @@ import {...
6
6
4
[{"id": "G0", "claim": "The DropStmt handling covers String, List and ObjectWithArgs but not TypeName, so DROP TYPE/DOMAIN on the system schema (e.g. DROP TYPE system.my_type) would not be blocked; add TypeName handling for consistency with checkAuthSchemaOperations.", "category": "security", "verdict": "supported", "p...
null
InsForge__InsForge__1046
InsForge/InsForge
1,046
defect
cb8a96f6ca601c8954fc9f4c145205c1fd66b81b
ad8510ae412d187ee5af45ed8414d34f160d89f3
fix(ai): return actionable error for BYOK key failures instead of generic 500
## Summary Closes #976 When a BYOK (Bring Your Own Key) OpenRouter API key is invalid, revoked, or rate-limited, the API now returns an actionable error instead of a generic 500 Internal Server Error. ## Changes **`backend/src/providers/ai/openrouter.provider.ts`** — Added error handling in `sendRequest()` catch bl...
diff --git a/backend/src/providers/ai/openrouter.provider.ts b/backend/src/providers/ai/openrouter.provider.ts index 26666d6a51..ceab4b7d39 100644 --- a/backend/src/providers/ai/openrouter.provider.ts +++ b/backend/src/providers/ai/openrouter.provider.ts @@ -469,6 +469,29 @@ export class OpenRouterProvider { ...
3
2
1
[{"id": "G0", "claim": "Remove the unused `AppError` import from the test file, which trips the ESLint `@typescript-eslint/no-unused-vars` rule and leaves the lint pipeline failing.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding ...
null
InsForge__InsForge__1048
InsForge/InsForge
1,048
defect
cb8a96f6ca601c8954fc9f4c145205c1fd66b81b
09df5f4b178c1bcd32f80a15a1d71e901468724f
feat(auth): add auto-confirm option when creating users from dashboard
## Summary Closes #989 Adds an optional "Auto-confirm" toggle to the admin Add User form. When enabled, the created user is marked as email-verified immediately, allowing them to log in without going through email verification. ## Changes ### Backend - **`shared-schemas/src/auth-api.schema.ts`** — Added `autoConfir...
diff --git a/backend/src/api/routes/auth/index.routes.ts b/backend/src/api/routes/auth/index.routes.ts index d159e20952..76638b122e 100644 --- a/backend/src/api/routes/auth/index.routes.ts +++ b/backend/src/api/routes/auth/index.routes.ts @@ -357,13 +357,14 @@ router.post('/users', async (req: Request, res: Response, n...
11
6
0
[{"id": "G0", "claim": "Fix the Prettier formatting violation on the POST /users destructuring line, which fails the Lint and Format check, by splitting it across lines.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When adminCreatingUser is true but bod...
null
InsForge__InsForge__1086
InsForge/InsForge
1,086
defect
d9e7831811e3697515a1db2738e8af59f48439fd
5c9eab6677a9cb7f36cdfa1c0ad6a93a31ed159a
fix(vercel): add retry with exponential backoff for file upload rate limits
## Summary Fixes #1069 Vercel's `POST /v2/files` returns `429 Too Many Requests` when too many uploads happen concurrently. PR #1009 added batching (groups of 10), but **batching alone is insufficient**. Evidence from Daniel's logs: ``` // All 429s within the SAME batch, same millisecond window: error - Failed to up...
diff --git a/backend/src/providers/deployments/vercel.provider.ts b/backend/src/providers/deployments/vercel.provider.ts index 5cae94e00c..c84a0a5cfb 100644 --- a/backend/src/providers/deployments/vercel.provider.ts +++ b/backend/src/providers/deployments/vercel.provider.ts @@ -7,6 +7,14 @@ import { ERROR_CODES } from ...
9
6
3
[{"id": "G0", "claim": "Run Prettier on backend/tests/unit/vercel-upload-batching.test.ts to fix the formatting error the lint-and-format pipeline is flagging.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rate-limit header value is parsed with parse...
null
InsForge__InsForge__1095
InsForge/InsForge
1,095
defect
d35fbaaa35b8df5f4986c055cc47194c7305f312
94b65574e274285ad52451a67764e4e1e2ef7dce
security: fix SQL injection vulnerabilities in database identifiers
closes - #1094 ## Summary This PR addresses a critical security vulnerability where user-controlled database identifiers (table names) were being directly interpolated into SQL queries using unescaped string templates. - **Centralized Quoting:** Updated DatabaseTableService.getTableSchema to use the existing qu...
diff --git a/backend/src/infra/database/database.manager.ts b/backend/src/infra/database/database.manager.ts index 652519f481..d6bff06293 100644 --- a/backend/src/infra/database/database.manager.ts +++ b/backend/src/infra/database/database.manager.ts @@ -3,6 +3,7 @@ import path from 'path'; import fs from 'fs/promises...
4
3
3
[{"id": "G0", "claim": "Line 382 of backend/src/services/database/database-table.service.ts fails the Prettier formatting check, which blocks merge; reformat the row-count query across multiple lines.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
InsForge__InsForge__1151
InsForge/InsForge
1,151
defect
56bec8807b55ffe75c682ed08a5e5fa09ef48ea1
7e29bb54854c0c74b4c735a82f1b7f9d895250e4
fix(secrets): deduplicate and enforce UNIQUE(key) on system.secrets
## Summary Some installs accumulate multiple `is_active=true` rows for the same key in `system.secrets` (typically `key='API_KEY'`). With duplicates present, read queries (`UPDATE ... WHERE key = $1` without `LIMIT 1`) match more than one row and Postgres returns them in non-deterministic order, so the same client API...
diff --git a/backend/src/infra/database/migrations/035_fix-secrets-deduplicate-and-unique.sql b/backend/src/infra/database/migrations/035_fix-secrets-deduplicate-and-unique.sql new file mode 100644 index 0000000000..a14647a750 --- /dev/null +++ b/backend/src/infra/database/migrations/035_fix-secrets-deduplicate-and-uni...
3
3
3
[{"id": "G0", "claim": "The keep-row selection orders only by created_at DESC, so when the newest duplicate row is already inactive or expired the migration deactivates the older active row and breaks all read queries for that key; selection should prioritize is_active and expires_at.", "category": "correctness", "verd...
null
InsForge__InsForge__1157
InsForge/InsForge
1,157
defect
d409b5c1356877a5d57c587b74660d62380672a2
38620d2bb73864d799f43bf03153b6f0736cf537
Add Realtime Presence functionality
## Summary Add presence service to realtime module so clients are now aware of the connected members in a given room. This is useful when building a online game or chat room. ## How did you test this change? Tested on cloud <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summar...
diff --git a/backend/src/infra/socket/socket.manager.ts b/backend/src/infra/socket/socket.manager.ts index e88b1046e1..b89ee542ab 100644 --- a/backend/src/infra/socket/socket.manager.ts +++ b/backend/src/infra/socket/socket.manager.ts @@ -4,21 +4,25 @@ import logger from '@/utils/logger.js'; import { TokenManager } fr...
11
5
2
[{"id": "G0", "claim": "removeSocketFromAllRooms deletes keys from the same Map it iterates, which is safe today only by an unobvious ECMAScript guarantee and would silently skip entries after future edits, so it should iterate over a snapshot of the keys.", "category": "maintainability", "verdict": "supported", "prior...
null
InsForge__InsForge__1159
InsForge/InsForge
1,159
defect
cb543bf7a10a41c6431f0160893089b3edd8be71
a17cc0f038d2ca7ec6c950ff61a5a6c51f0b234f
feat(schedules): allow sub-minute cadence (backend + dashboard)
## Summary Enables sub-minute cadence for InsForge schedules end-to-end (backend validator + computeNextRun, shared-schemas Zod, `execute_job` HTTP timeouts, dashboard form). Accepts pg_cron's interval syntax (`"2 seconds"`, `"30 seconds"`, `"5 minutes"`) alongside the existing 5-field cron format. Keeps the existin...
diff --git a/backend/src/infra/database/migrations/036_schedules-pg-net.sql b/backend/src/infra/database/migrations/036_schedules-pg-net.sql new file mode 100644 index 0000000000..1b3c3f81ed --- /dev/null +++ b/backend/src/infra/database/migrations/036_schedules-pg-net.sql @@ -0,0 +1,170 @@ +-- Migration 036: Switch sc...
12
8
3
[{"id": "G0", "claim": "The pg_net execute_job silently converts PUT/PATCH jobs to POST even though pg_net only supports GET, POST and DELETE, so the code should validate the HTTP method and reject unsupported verbs at execution time instead of silently mapping them.", "category": "correctness", "verdict": "supported",...
null
InsForge__InsForge__224
InsForge/InsForge
224
defect
d57a6c8ebc2decb324bb252ceb6a5fb368583030
8ee076b4d9e59f0354ec5babcfe15b20f25af91e
🐛 Fixed pagination didn't change according to searchQuery
https://github.com/user-attachments/assets/f2c7441f-6b39-49c9-bbba-5af09acddf2c Related to https://github.com/InsForge/InsForge/issues/219 Then I found that the get-records response from the database/storage/users service follows three different formats. Changes: Unified response format to return pagination in...
diff --git a/backend/src/api/routes/auth.ts b/backend/src/api/routes/auth.ts index 036151070c..e5ca2d5e7e 100644 --- a/backend/src/api/routes/auth.ts +++ b/backend/src/api/routes/auth.ts @@ -224,8 +224,12 @@ router.get('/users', verifyAdmin, async (req: Request, res: Response, next: Next const { count } = await db...
7
3
2
[{"id": "G0", "claim": "Multiple variable declarations on a single line reduce readability; each variable should be declared on its own line.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The auth service is missing the access token header; it ...
null
InsForge__InsForge__764
InsForge/InsForge
764
defect
1e95d99c148f2d39d6df47f89b2e1588a76ee7b5
08566da6fb82093113b8de548eae8a2faf896fa5
feat: fetch deno subhosting app logs
## Summary new feature: fetching deno subhosting app logs. ## How did you test this change? test passed on local, plus: ``` $ cd backend && npx vitest run tests/unit/deno-app-logs.test.ts ✓ tests/unit/deno-app-logs.test.ts (17 tests) 16ms ✓ DenoSubhostingProvider.getDeploymentAppLogs > fetches app lo...
diff --git a/backend/src/providers/functions/deno-subhosting.provider.ts b/backend/src/providers/functions/deno-subhosting.provider.ts index 1248682460..1c2ed3e930 100644 --- a/backend/src/providers/functions/deno-subhosting.provider.ts +++ b/backend/src/providers/functions/deno-subhosting.provider.ts @@ -74,6 +74,35 @...
2
1
1
[{"id": "G0", "claim": "Fix the lint errors: add curly braces after the single-line `if` conditions building the app-log query params, as the failing ESLint pipeline requires.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Guard decodeURIComponent i...
null
InsForge__InsForge__794
InsForge/InsForge
794
defect
67d26c3e3381e3d0a29f3ed3fbb8fb6ca9faf95f
ebaebe06305ddda926a0381061c438de60389b86
AI Integration include function tool calling
## Summary <!-- Briefly describe what this PR does --> Add tool calling support to the AI chat completion pipeline. Change the shared-schemas, backend service, routes, and documentation. ## How did you test this change? <!-- Describe how you tested this PR --> Unit test the schema validation and verify the m...
diff --git a/backend/src/api/routes/ai/index.routes.ts b/backend/src/api/routes/ai/index.routes.ts index 6c1daaaf0b..6353e7f175 100644 --- a/backend/src/api/routes/ai/index.routes.ts +++ b/backend/src/api/routes/ai/index.routes.ts @@ -79,6 +79,9 @@ router.post( if (data.tokenUsage) { res.wri...
15
8
4
[{"id": "G0", "claim": "The lint pipeline fails on `let service: any` in the new test file with @typescript-eslint/no-explicit-any, so the `any` type should be fixed or suppressed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The SSE error payload...
null
InsForge__InsForge__804
InsForge/InsForge
804
defect
ac598a620d519cfaa592b52a469e5bd1aca27241
b38e0dac3912b0bde64431aeb22d4feaec0a7178
fix(ai): soft-disable configurations with is_active
## Summary This PR fixes AI model disable behavior when usage history exists. Previously, deleting a row in `ai.configs` could fail because `ai.usage.config_id` was constrained with `ON DELETE NO ACTION` after schema rework. This PR restores the intended behavior so usage history is preserved while model configs ca...
diff --git a/backend/src/infra/database/migrations/023_restore-ai-usage-fk-set-null.sql b/backend/src/infra/database/migrations/023_restore-ai-usage-fk-set-null.sql new file mode 100644 index 0000000000..085983527a --- /dev/null +++ b/backend/src/infra/database/migrations/023_restore-ai-usage-fk-set-null.sql @@ -0,0 +1...
6
5
1
[{"id": "G0", "claim": "Migration 023 should be wrapped in an explicit BEGIN/COMMIT like every other migration in the codebase, because without it a failure after DROP NOT NULL could leave config_id nullable without the intended FK.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introd...
null
InsForge__InsForge__811
InsForge/InsForge
811
defect
c4d1781989a711338bc484348cf22c3b32a1ff44
8c8c60096276465e69fe60d6cef8db60a77433ab
fix camelCase issue and some missing docs
## Summary <!-- Briefly describe what this PR does --> fix camelCase issue and some missing docs ## How did you test this change? <!-- Describe how you tested this PR --> 1. Tag the changes and restart the project in sudo using this version 2. Will put the test cases in this document: https://docs.google.co...
diff --git a/backend/src/services/ai/chat-completion.service.ts b/backend/src/services/ai/chat-completion.service.ts index 52ae5c82d7..6be00ab27c 100644 --- a/backend/src/services/ai/chat-completion.service.ts +++ b/backend/src/services/ai/chat-completion.service.ts @@ -292,8 +292,8 @@ export class ChatCompletionServic...
5
4
2
[{"id": "G0", "claim": "The documented Swift FunctionDefinition with parameters: [String: Any]? cannot conform to Codable/Sendable as written; the docs should use a Codable JSON wrapper type or mark the snippet as pseudocode.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
InsForge__InsForge__829
InsForge/InsForge
829
defect
958f4a797756ac79d6bdb2ae0c70db97950f0d28
ab38459e337b9dfd0c510b24357b3b9e1ca04b0f
chore: fix all failing unit tests and add frontend test infrastructure
Backend test fixes: - Fix stale imports in email.test.ts: update paths for EmailService (core/email/email -> services/email/email.service), AppError (api/middleware -> api/middlewares), and config mock (app.config -> infra/config/app.config) - Fix stale imports in rate-limit.test.ts: update middleware -> middlewares ...
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000000..07d8e43a4c --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,30 @@ +name: Unit Tests + +on: + pull_request: + branches: [main, master, develop] + workflow_dispatch: + +jobs: + unit...
4
4
3
[{"id": "G0", "claim": "isDevelopment() returns true for NODE_ENV='test' or an unset NODE_ENV, broader than its name, which can leak dev-only behavior into tests and other non-production environments; compare explicitly against 'development' or rename the helper.", "category": "correctness", "verdict": "supported", "pr...
null
InsForge__InsForge__899
InsForge/InsForge
899
defect
1490eef1a2bb18a9ef1e9c7dcfdc08b015c7d583
a7c100f6efab65cd5813da7c54f109ac4fb25610
fix(database): add authentication middleware to records and RPC routes
Description: ## Summary - Added `verifyUser` middleware to `/api/database/records` and `/api/database/rpc` endpoints - These were the only database routes without any authentication — all others already use `verifyAdmin` - Unauthenticated requests are now rejected with 401 - SDK clients continue work...
diff --git a/backend/src/api/routes/database/records.routes.ts b/backend/src/api/routes/database/records.routes.ts index 8da35a5f59..cbb101e34c 100644 --- a/backend/src/api/routes/database/records.routes.ts +++ b/backend/src/api/routes/database/records.routes.ts @@ -1,6 +1,6 @@ import { Router, Response, NextFunction ...
5
2
2
[{"id": "G0", "claim": "The maintainer asks how the authentication middleware change has been tested, i.e. requests evidence that the change is tested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CI Prettier check fails on backend/tests/unit/reco...
null
InsForge__InsForge__920
InsForge/InsForge
920
defect
9c190086eb9cdc5168dcfc6dbc62a256dbaebee1
3dc7fb284e79f1c11ae7fbda77d8feace91ccda6
fix: clamp negative offset/limit params to prevent 500 errors (closes #919)
## Summary Closes #919. Negative `offset`/`limit` query params (e.g. `?offset=-1`) cause PostgreSQL to reject the query with a 500 error. `parseInt('-5') || 0` evaluates to `-5` because negative numbers are truthy in JS. ### Fix Apply `Math.max()` to clamp `offset >= 0` and `limit >= 1` across all 4 paginated endpoi...
diff --git a/backend/src/api/routes/auth/index.routes.ts b/backend/src/api/routes/auth/index.routes.ts index 19a56ee360..63a76d5ff1 100644 --- a/backend/src/api/routes/auth/index.routes.ts +++ b/backend/src/api/routes/auth/index.routes.ts @@ -529,8 +529,8 @@ router.get('/users', verifyAdmin, async (req: Request, res: R...
3
2
1
[{"id": "G0", "claim": "The maintainer asks the PR author to write tests for the pagination clamping change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The clampLimit test helper only checks the lower bound, so the upper-bound limits (max 100 for sc...
null
InsForge__InsForge__944
InsForge/InsForge
944
defect
6488b07938f27990385947164ea6e0dc327d05de
f35097e73e0f6c6656aa206bd14727f152102c6b
fix(storage): prevent baseDir deletion via invalid bucket names
- Prevent empty bucket name from resolving to baseDir - Add validation to block invalid bucket inputs - Ensure bucket is treated as identifier, not path - Improves safety of deleteBucket operation ## Summary Fixes #924 Fixes a critical issue where calling `deleteBucket("")` could resolve to the base storage ...
diff --git a/backend/src/providers/storage/local.provider.ts b/backend/src/providers/storage/local.provider.ts index 79d7c3b564..7b10112022 100644 --- a/backend/src/providers/storage/local.provider.ts +++ b/backend/src/providers/storage/local.provider.ts @@ -14,6 +14,15 @@ export class LocalStorageProvider implements S...
4
2
2
[{"id": "G0", "claim": "Bucket-name validation should live inside getValidatedPath (validating there) instead of sitting in a separate validateBucketName method, so every path derived through getValidatedPath is checked.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
InstaPy__InstaPy__1690
InstaPy/InstaPy
1,690
defect
dfb8595d4cd548e76555831f81b5eccff9d8c5c8
b5f698fb9065863694645a688c8d15c88515f8e5
Chromedriver validations
Fixes #1687 (and many others). Hopefully the error message will provide the user the information to update the chromedriver instead of raising issues.
diff --git a/assets/.gitignore b/assets/.gitignore new file mode 100644 index 000000000..6f7727bff --- /dev/null +++ b/assets/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything +* + +# But not these files... +!unicodes.md diff --git a/instapy/instapy.py b/instapy/instapy.py index cc39084ba..10573acb8 100644 --- a/instapy/...
1
1
1
[{"id": "G0", "claim": "Setting the minimum chromedriver to 2.36 blocks users on 32-bit/armhf systems (e.g. Raspberry Pi 2), where chromedriver 2.36+ is unavailable, making InstaPy unusable there and invalidating the Raspberry Pi install guide.", "category": "compatibility", "verdict": "supported", "priority": "P1", "s...
null
InstaPy__InstaPy__2612
InstaPy/InstaPy
2,612
defect
d86c660d4887fb47a833bf9ce1c8e46d71bb162b
09d6b753d4486acc2b0e32cd5198804d350ff4d4
Feature - mandatory like
Hello, I added the possibility to add a mandatory word list. Example : ``` session.set_mandatory_like(['#food', '#instafood']) session.like_by_locations(['213099780'], amount=100) ``` Like photo's in location "213099780" only if contains the hashtags "#food" and "#instafood".
diff --git a/instapy/instapy.py b/instapy/instapy.py index d08ecc76b..62909cf04 100644 --- a/instapy/instapy.py +++ b/instapy/instapy.py @@ -145,6 +145,7 @@ def __init__(self, self.smart_hashtags = [] self.dont_like = ['sex', 'nsfw'] + self.mandatory_like = [] self.ignore_if_contains...
7
5
0
[{"id": "G0", "claim": "The method `set_mandatory_like` should be renamed to something more like `.set_mandatory_words`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add a part to the README file describing what the man...
null
InstaPy__InstaPy__4620
InstaPy/InstaPy
4,620
defect
44482c77524f295d5bd0b0220a6239705066ca6d
066906d2fe02a9b2421f0472e879cd358bebffe5
Fix missing check for action and uninitialized action_delays in settings
Hey, yesterday's fix of `get_action_delays` method https://github.com/timgrossmann/InstaPy/pull/4606/commits/b71563f7381e48c2bd8cccac1a861f720ddbb452 caused another bug along the line #4610 #4619 #4622 #4610 #4615 `Settings.action_delays` is not initialized properly. As suggested by @lvkins I'm adding another che...
diff --git a/instapy/util.py b/instapy/util.py index 96b03af8c..d119b9606 100644 --- a/instapy/util.py +++ b/instapy/util.py @@ -1762,6 +1762,7 @@ def get_action_delay(action): config = Settings.action_delays if (not config or + action not in config or config["enabled"] is not True o...
1
1
1
[{"id": "G0", "claim": "The closing parenthesis in get_action_delay's condition is misplaced: it closes after the isinstance call instead of after `is not True`, so the `is not True` comparison stays outside the parentheses and the bug the change was meant to fix is still there.", "category": "correctness", "verdict": ...
null
InstaPy__InstaPy__5443
InstaPy/InstaPy
5,443
defect
a8d6641283611d3f8cde9fec6e884fdeb15f22e9
2875e9cf1de0dfe796e6bf467beb42e814095b71
Insert target users, hashtags etc from text file - Issue #5396
Hello, I was assigned to implement the ability to parse text files containing target users, hashtags, comments etc in order to use it with functions which accept lists as given parameters. This will be a part of a university assignment of mine as I also mentioned on issue #5396. **Functions added:** file_handling i...
diff --git a/instapy/instapy.py b/instapy/instapy.py index 01f2f3291..ac97f43df 100644 --- a/instapy/instapy.py +++ b/instapy/instapy.py @@ -52,6 +52,7 @@ from .util import parse_cli_args from .util import get_cord_location from .util import get_bounding_box +from .util import file_handling from .unfollow_util impo...
1
1
0
[{"id": "G0", "claim": "The pull request should add a note in the changelog and an example in the documentation (near the like-by-tags section) so users learn the new target_list() function exists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__Fixit__184
Instagram/Fixit
184
defect
623d0d39359a8ae714c24a6d4e41cf91b21a4573
8397f5191d8849e43f631ba64bad1d3103ce62e0
Adds allow_list_rules setting for configs.
## Summary Adds a new setting `allow_list_rules` that enables setting specific rules as "on". This solves a couple things: - Safer upgrades of Fixit versions for users because newly added rules can be turned off by default - Along with inheritable configs (to be implemented https://github.com/Instagram/Fixit/issues/...
diff --git a/docs/source/getting_started.ipynb b/docs/source/getting_started.ipynb index 972cab8c..477e52d5 100644 --- a/docs/source/getting_started.ipynb +++ b/docs/source/getting_started.ipynb @@ -155,6 +155,10 @@ "\n", "2. Next, you may wish to edit or add some specific settings. The available configuratio...
3
2
1
[{"id": "G0", "claim": "The Windows CI failures come from multiline strings with escaped newlines under DOS line endings, which are invalid escapes and do not behave correctly at runtime; the code should use textwrap.dedent-style indented multiline strings (and YAML allows blank lines without backslashes).", "category"...
null
Instagram__Fixit__192
Instagram/Fixit
192
defect
b078404f10d6d04324086c04ae3437836845a90b
3525db85916018d5413dc1e353d28c2e2bc4c694
Reads use_noqa from config file.
## Summary https://github.com/Instagram/Fixit/issues/191 `use_noqa` is not taking effect because the setting is not read from the config file, this diff fixes that by adding a `BOOLEAN_SETTINGS` option and looping through that. `get_validated_settings` became too complicated (according to the linter) with this add...
diff --git a/fixit/common/config.py b/fixit/common/config.py index 47521bfd..6927cc9b 100644 --- a/fixit/common/config.py +++ b/fixit/common/config.py @@ -63,14 +63,12 @@ LIST_SETTINGS = ["formatter", "block_list_patterns", "block_list_rules", "packages"] PATH_SETTINGS = ["repo_root", "fixture_dir"] +BOOLEAN_SETTIN...
1
1
0
[{"id": "G0", "claim": "The test should also compare the setting values between settings_options and settings, not just verify that every key of settings appears in settings_options.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__Fixit__244
Instagram/Fixit
244
defect
c5fb172d2a4fcade33a45d866e823f6406a07cf2
d2d4e38ab76b551d56e68e67f785ee99bd087541
Overhaul rule collection and loading
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #252 * #251 * #250 * #249 * #245 * __->__ #244 - Creates new QualifiedRule class to hold module/name/local info from enabled or disabled rules in config - Simplifies rule collection to always try importing the full module directly, inclu...
diff --git a/pyproject.toml b/pyproject.toml index 0bd20c2e..3b1d9a04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ dev = [ "flake8 == 4.0.1", "flake8-bugbear == 22.9.23", "mypy == 0.981", + "rich == 12.6.0", "ufmt == 2.0.1", "usort == 1.0.5", ] diff --git a/src/fixit/c...
5
5
2
[{"id": "G0", "claim": "rich should not be a hard dev dependency; it should be declared as a non-dev optional dependency so users can install it via fixit[pretty].", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The is_rule parameter should be annotated T...
null
Instagram__Fixit__35
Instagram/Fixit
35
defect
65f818982671cf57c080a0f98ddb0b0ae925f7c6
e3cfa717045926dc6d743445adeb3d6c69c09d4d
Lint config system
## Summary - We want to implement a config system similar to that of LibCST in Fixit. - Closely mimics LibCST's config implementation [here](https://github.com/Instagram/LibCST/blob/master/libcst/tool.py#L304) - `pyfmt` has been redesigned to work a wider range of formatters now (`black` on its own writes directly t...
diff --git a/.lint.config.yaml b/.lint.config.yaml new file mode 100644 index 00000000..55a52b5f --- /dev/null +++ b/.lint.config.yaml @@ -0,0 +1,8 @@ +blacklist_patterns: [] +blacklist_rules: [] +formatter: +- black +generated_code_marker: '@generated' +packages: +- fixit.rules +repo_root: . diff --git a/docs/source/l...
15
11
2
[{"id": "G0", "claim": "The lint config file should be named `.fixit.config.yaml` instead of `.lint.config.yaml`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "pyfmt puts the path as the first argument after the formatter command, which may bre...
null
Instagram__Fixit__38
Instagram/Fixit
38
defect
c1af35e757ddb05f0c23aeac52f73be8b7b56d32
98a7bcf7dca446ea76250442fecb23c55ee5523a
Scripts
## Summary - Bring `apply_fix` and `insert_suppressions` scripts over to Fixit. - Modify `insert_suppressions.py` to work with type-dependent rules (apply_fix currently calls `lint_file_and_apply_patches` which cannot be easily configured to work with metadata cache, will be addressed in a subsequent PR) - Remove `p...
diff --git a/fixit/common/base.py b/fixit/common/base.py index 5a20c3ee..566910ee 100644 --- a/fixit/common/base.py +++ b/fixit/common/base.py @@ -15,18 +15,21 @@ CodePosition, MetadataWrapper, PositionProvider, + TypeInferenceProvider, ) from fixit.common.report import BaseLintRuleReport, CstLint...
6
6
4
[{"id": "G0", "claim": "Move the TypeInferenceProvider support of apply_fix out of this pull request into a later PR, as agreed in offline discussion.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Don't print the autoformatter warning at startup time; l...
null
Instagram__Fixit__388
Instagram/Fixit
388
defect
84378a845746e2633882010061b808f67f836b3d
13d01d34d0eeff8cd0e83452c3b81cfec2726189
feat: support linting stdin
Similarly for `fixit fix`. The API is [inspired by Prettier](https://prettier.io/docs/en/cli.html#--stdin-filepath). ## Summary Related to #122 but does not fully resolve it. It supports a lint-as-you-type workflow, whereas only a lint-on-save workflow could be supported before. Full resolution of #122 would requir...
diff --git a/docs/guide/commands.rst b/docs/guide/commands.rst index 89177a79..c8cee4d8 100644 --- a/docs/guide/commands.rst +++ b/docs/guide/commands.rst @@ -50,12 +50,20 @@ Lint one or more paths, and print a list of lint errors. .. code:: console - $ fixit lint [--diff] [PATH ...] + $ fixit lint [--diff] ...
1
1
1
[{"id": "G0", "claim": "Handle stdin in the supported API (add fixit_stdin wrapping fixit_bytes and have fixit_paths detect a stdin sentinel) instead of handling it at the CLI layer as the PR does.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Instagram__LibCST__1007
Instagram/LibCST
1,007
defect
9286446f889f1778b8f11451a68107052b2930b3
79c70ef1df2f499d27a781a500f5628c042c11fc
Support files with mixed newlines
## Summary This PR fixes an issue in LibCST native where it failed to parse a file that uses mixed `\r` and `\n` or `\r` and `\r\n` newlines. It also replaces the Regex to find all newlines with a simple call to `memchr`. This should be much faster because it doesn't require the overhead of a full regex automata...
diff --git a/native/Cargo.lock b/native/Cargo.lock index 06a718fdf..6b03c3f72 100644 --- a/native/Cargo.lock +++ b/native/Cargo.lock @@ -356,6 +356,7 @@ dependencies = [ "difference", "itertools 0.11.0", "libcst_derive", + "memchr", "paste", "peg", "pyo3", diff --git a/native/libcst/Cargo.toml b/native/libc...
5
2
1
[{"id": "G0", "claim": "The previous split_inclusive(default_newline) logic incorrectly assumed a file uses only one kind of line break, leaving some lines unsplit; this PR replaces it with a manual splitter.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "...
null
Instagram__LibCST__1019
Instagram/LibCST
1,019
defect
94dd20e20ee87699d7f2c7815744f56f805723ef
fc54cfbb19c2284ca3a0d2dbe5c37aa30e904e00
ScopeProvider: Record Access for Attributes and Decorators
## Summary Fixes #1018 by making all calls to `_NameUtil.get_name_for()` use `get_full_name_for_node()` instead.
diff --git a/libcst/metadata/scope_provider.py b/libcst/metadata/scope_provider.py index 88de3fc4e..f9887efbc 100644 --- a/libcst/metadata/scope_provider.py +++ b/libcst/metadata/scope_provider.py @@ -362,12 +362,16 @@ def get_name_for(node: Union[str, cst.CSTNode]) -> Optional[str]: return node.value ...
2
2
1
[{"id": "G0", "claim": "The duplicate `_NameUtil.get_name_for` helper should be deleted and its callers switched to the existing `get_full_name_for_node` instead of keeping two parallel implementations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "cl...
null
Instagram__LibCST__1024
Instagram/LibCST
1,024
defect
37277e5fe71781148b897d4cb4a7125e61b580f3
1abbaa51fe0ffd38f45b0a4754d68bdc979e452c
AddImportsVisitor: add imports before the first non-import statement
## Summary Proposed fix for #1023. It changes `AddImportsVisitor` so it only considers adding new imports after/at the first import block before any other statements, if any. ## Test Plan Added a few tests to `test_add_imports.py`
diff --git a/libcst/codemod/visitors/_add_imports.py b/libcst/codemod/visitors/_add_imports.py index 8081adf9f..0bcc3cbcb 100644 --- a/libcst/codemod/visitors/_add_imports.py +++ b/libcst/codemod/visitors/_add_imports.py @@ -8,11 +8,47 @@ import libcst from libcst import matchers as m, parse_statement +from libcst....
5
5
3
[{"id": "G0", "claim": "Subclassing GatherImportsVisitor to completely change its behavior is poor use of inheritance; extract the shared _handle_... logic into a mixin so the new visitor need not override visit_Import/visit_ImportFrom with dummy implementations.", "category": "design", "verdict": "supported", "priorit...
null
Instagram__LibCST__1137
Instagram/LibCST
1,137
defect
9f54920d9d32a519aa1702485ed56c55d8189a0c
88e11b66aa93aa688cbf2bc7330f4c2d9720e5ed
Add helper functions for common ways of filtering nodes
## Summary Currently, the way to print out the CST is using ``libcst.tool.dump``. There are many useful **inner** functions in ``libcst.tool`` which could be used by 3rd parties to provide their own custom representation of LibCST graphs. The goal of this PR is to expose some of these functions: functions which he...
diff --git a/libcst/tool.py b/libcst/tool.py index 5469ef27d..57db1f96a 100644 --- a/libcst/tool.py +++ b/libcst/tool.py @@ -44,6 +44,98 @@ _DEFAULT_INDENT: str = " " +def filter_node_fields( + node: CSTNode, + *, + show_defaults: bool, + show_syntax: bool, + show_whitespace: bool, +) -> Sequence["...
1
1
1
[{"id": "G0", "claim": "The _is_whitespace and _is_syntax field-filtering logic should be extracted into their own public helper functions (with docstrings and tests) and moved under libcst.helpers.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Instagram__LibCST__1148
Instagram/LibCST
1,148
defect
9f54920d9d32a519aa1702485ed56c55d8189a0c
8e8585c2e8796dd52515916a89dbb199e3b6233f
FullyQualifiedNameProvider: Optionally consider pyproject.toml files when determining a file's module name and package
When determining the module name and package for a source file, LibCST currently takes the file name relative to the repository root. With this change, it will instead look for the closest directory containing a `pyproject.toml` file in the file's ancestors, and consider the file name relative to that directory. Thi...
diff --git a/libcst/helpers/module.py b/libcst/helpers/module.py index 3c26122d3..3697ba1c9 100644 --- a/libcst/helpers/module.py +++ b/libcst/helpers/module.py @@ -5,7 +5,7 @@ # from dataclasses import dataclass from itertools import islice -from pathlib import PurePath +from pathlib import Path from typing import...
3
2
2
[{"id": "G0", "claim": "calculate_module_and_package shouldn't do any IO; the pyproject.toml lookup should instead happen upstream (e.g. in FullyQualifiedNameProvider's gen_cache), which passes in a suitable root, since the helper is exposed in libcst.helpers.", "category": "design", "verdict": "supported", "priority":...
null
Instagram__LibCST__1184
Instagram/LibCST
1,184
defect
56cd1f98628188d0850c33c96dabd3acccc6645a
4077ff0f07e713e945d6e8bb35e3ec35d7c35c56
Clear warnings for each file in codemod cli
## Summary Original idea belongs to @jschavesr. I am just resubmitting his abandoned [PR](https://github.com/Instagram/LibCST/pull/665). Fixes the issue: https://github.com/Instagram/LibCST/issues/1183 Context warning messages were not being cleaned between files, so warnings from one files could be passed to ot...
diff --git a/libcst/codemod/_cli.py b/libcst/codemod/_cli.py index 8bfc11f89..ffc699c0b 100644 --- a/libcst/codemod/_cli.py +++ b/libcst/codemod/_cli.py @@ -250,10 +250,13 @@ def _execute_transform( # noqa: C901 # We do this after the fork so that a context that was initialized with # some defaults b...
1
1
0
[{"id": "G0", "claim": "Apart from metadata_manager, every field of the codemod context should be reset per file: the change clears warnings but leaves fields like full_module_name and full_package_name persisting from the previous file, and a fresh context should be created for each file instead of patching fields wit...
null
Instagram__LibCST__1204
Instagram/LibCST
1,204
defect
9834694730b868fa36688bad0d429fac8b758990
6a29b07c1d1e762e2cc24f1f5be64d979d9f66b1
fix certain matchers breaking under multiprocessing by initializing them late
Support matcher decorators with multiprocessing on Windows/macOS. See issue #1181 for more context. ## Summary - Call `_gather_matchers` later in the code (first time when it's needed) to ensure we initialize them in a process AFTER the "fork". - Proactively check if attributes are not properties instead of t...
diff --git a/libcst/codemod/tests/test_codemod_cli.py b/libcst/codemod/tests/test_codemod_cli.py index 0fa3dbefd..8773cd77f 100644 --- a/libcst/codemod/tests/test_codemod_cli.py +++ b/libcst/codemod/tests/test_codemod_cli.py @@ -93,3 +93,34 @@ def baz() -> str: "- 3 warnings were generated.", ...
1
1
1
[{"id": "G0", "claim": "The change makes every on_visit() pay extra cost when the visitor/transformer declares no matchers, and the reviewer asks that this overhead be eliminated.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Instagram__LibCST__1270
Instagram/LibCST
1,270
defect
230f177c84f6711f17e00851ccfa6a41e63e3caf
bc4ac7a4105e8f276ea310c2eb2435e24e4248d1
Add codemod to convert `typing.Union` to `|`
## Summary This codemod can help upgrade typing syntax to Python 3.10+ by converting unions to use `|` as specified in PEP604 ## Test Plan hatch run python -m unittest libcst.codemod.commands.tests.test_convert_union_to_or
diff --git a/libcst/codemod/commands/convert_union_to_or.py b/libcst/codemod/commands/convert_union_to_or.py new file mode 100644 index 000000000..879745f74 --- /dev/null +++ b/libcst/codemod/commands/convert_union_to_or.py @@ -0,0 +1,56 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is...
1
1
0
[{"id": "G0", "claim": "The leave_Subscript method should return early when the subscript is not a typing.Union, instead of nesting the conversion logic inside the if.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Instagram__LibCST__1375
Instagram/LibCST
1,375
defect
2fb4b2dd58537952b709f3730850b651c1dd4974
273e08dc62830e4f93442106b9b8a597a05bc959
remove entry points to pure parser
## Summary first split of #1371 Removes tests and entry points Also temporarily omits the _parser dir from tests ## Test Plan CI
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5147f4574..4b0fa767a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,15 +39,8 @@ jobs: run: uv sync --locked --dev - name: Native Parser Tests run: uv run poe test - - name: Pure Parser Tests...
1
1
0
[{"id": "G0", "claim": "After removing the is_native() branch, native_parse_statement is always parse_statement, so its Optional type annotation is no longer accurate.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__LibCST__1432
Instagram/LibCST
1,432
defect
9275a8bf7875d08659ce7b266860138bba633410
bd06426e91f31b799726e4b9bc7c26edc37e6408
Create CodemodCommand Remove/Add Import helper functions
## Summary One of the key features of the `CodemodCommand` class is that it abstracts away the final run of `AddImportsVisitor` and `RemoveImportsVisitor` in `transform_module` ([Code Source](https://github.com/Instagram/LibCST/blob/9275a8bf7875d08659ce7b266860138bba633410/libcst/codemod/_command.py#L68-L90)). However...
diff --git a/libcst/codemod/_command.py b/libcst/codemod/_command.py index 3671a3fb..95d599a1 100644 --- a/libcst/codemod/_command.py +++ b/libcst/codemod/_command.py @@ -6,9 +6,9 @@ import argparse import inspect from abc import ABC, abstractmethod -from typing import Dict, Generator, List, Tuple, Type, TypeVar +fr...
1
1
0
[{"id": "G0", "claim": "The new CodemodCommand helper wrappers in libcst/codemod/_command.py should use the updated `str | None` syntax instead of `Optional[...]` for their optional parameters.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Instagram__LibCST__179
Instagram/LibCST
179
defect
9bdb2b4eb53e9179e399cc1399b8076f6d2358c9
a900272a169343842d0d638f710ab54895e650b2
Full repo manager
## Summary Add Full repo manager. Also add Sphinx documents. https://4831-200896124-gh.circle-artifacts.com/0/doc/metadata.html ![image](https://user-images.githubusercontent.com/3840867/71535747-1a190a00-28bd-11ea-9b1a-faf49d90e90d.png) ## Test Plan Integration test: ![image](https://user-images.githubuse...
diff --git a/libcst/metadata/full_repo_manager.py b/libcst/metadata/full_repo_manager.py new file mode 100644 index 000000000..3e7253eeb --- /dev/null +++ b/libcst/metadata/full_repo_manager.py @@ -0,0 +1,107 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# +# This source code is licensed under the MIT license...
3
2
1
[{"id": "G0", "claim": "Constructing FullRepoManager should be light — expensive shell calls (the pyre query priming the cache) should not run in the constructor but in another method.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The provider-to-handle...
null
Instagram__LibCST__284
Instagram/LibCST
284
defect
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
7a69cd29905d55a9c673a4ff253667752d180a27
[ScopeProvider] Expose more granular Assignments and Accesses for dotted imports
## Summary This PR adds extra `Assignment`s created by the `ScopeProvider` for dotted imports like `import a.b.c`. For such an import, there are now three assignments, keyed by `a`, `a.b`, and `a.b.c`. For accesses, only the most specific access is recorded and attached to the appropriate assignment. ## Test Plan ...
diff --git a/libcst/codemod/visitors/_remove_imports.py b/libcst/codemod/visitors/_remove_imports.py index 0023bd227..841812c4c 100644 --- a/libcst/codemod/visitors/_remove_imports.py +++ b/libcst/codemod/visitors/_remove_imports.py @@ -12,6 +12,7 @@ from libcst.codemod.visitors._gather_exports import GatherExportsVis...
7
5
1
[{"id": "G0", "claim": "The new _gen_dotted_names logic duplicates libcst.helpers.get_full_name_for_node and should be reused instead.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dotted-name generation should be exposed as a helper method...
null
Instagram__LibCST__406
Instagram/LibCST
406
defect
01c8098965144feddaa34c1c9f58c92ce8265541
af8274900fe4faadea33dfe528199b5f62b566a0
fix is_annotation for types used in classdef base and assign value
## Summary fix is_annotation for types used in classdef base and assign value discussion ## Test Plan tox -e py37 tox -e autofix
diff --git a/libcst/metadata/scope_provider.py b/libcst/metadata/scope_provider.py index f0cde1dc1..9d7d9c246 100644 --- a/libcst/metadata/scope_provider.py +++ b/libcst/metadata/scope_provider.py @@ -647,6 +647,7 @@ def __init__(self, provider: "ScopeProvider") -> None: Union[cst.Call, cst.Annotation, cst...
5
5
3
[{"id": "G0", "claim": "The new `visit_Assign_value` visitor's parameter should be named `node` instead of `original_node`, per the visitor naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new `leave_ClassDef_bases` visitor'...
null
Instagram__LibCST__464
Instagram/LibCST
464
defect
39ff458270c3790f9c283f83522ee5b0f607163d
d671598b7b7a0c8869f70083f2b90135815292c4
Split QualifiedNameProvider out from libcst.metadata.scope_provider
## Summary The provider is still available from `libcst.metadata`. I'm planning to add `FullyQualifiedNameProvider` to this file too. ## Test Plan New and existing tests.
diff --git a/libcst/metadata/__init__.py b/libcst/metadata/__init__.py index 2e70e9dff..477a631fb 100644 --- a/libcst/metadata/__init__.py +++ b/libcst/metadata/__init__.py @@ -16,6 +16,7 @@ ExpressionContextProvider, ) from libcst.metadata.full_repo_manager import FullRepoManager +from libcst.metadata.name_prov...
1
1
0
[{"id": "G0", "claim": "The new test_name_provider.py duplicates the existing test_qualified_name_provider.py, and the tests should be consolidated under a better file naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__LibCST__545
Instagram/LibCST
545
defect
3ccfc4adc82b8354c1c998b0abd1ded3d690a1e8
614802469995c9b76ba5fd0fa7d32ab8dc711705
Don't gather metadata if the wrapper already contains it
## Summary The MetadataWrapper is meant to resolve METADATA_DEPENDENCIES and prevent a single provider from being invoked multiple times. This logic was flawed if the wrapper already contained a provider. ## Test Plan python3 -m unittest libcst.metadata.tests.test_metadata_wrapper.MetadataWrapperTest
diff --git a/libcst/metadata/tests/test_metadata_wrapper.py b/libcst/metadata/tests/test_metadata_wrapper.py index 731a910ff..36fe7d5b6 100644 --- a/libcst/metadata/tests/test_metadata_wrapper.py +++ b/libcst/metadata/tests/test_metadata_wrapper.py @@ -5,9 +5,14 @@ from typing import Optional +from unittest.mock i...
1
1
1
[{"id": "G0", "claim": "The refactored _resolve_impl should wrap providers in set(providers) when passing them to _gather_providers, to match the previous behavior where a set copy was gathered.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Instagram__LibCST__546
Instagram/LibCST
546
defect
3ccfc4adc82b8354c1c998b0abd1ded3d690a1e8
34316b5a6e9d1fe278fc553901c55be8c958931c
Stop parsing string annotations when no longer in a typing call
## Summary ``` # this should parse a string annotation TypeVar("T", "int") # this should not TypeVar("T", func("int")) ``` To correct handle these nested function calls I've turned the type hint tracking in the ScopeVisitor into a stack rather than a set. ## Test Plan python -m unittest libcst.meta...
diff --git a/libcst/metadata/scope_provider.py b/libcst/metadata/scope_provider.py index 821855c9b..f468a6bc6 100644 --- a/libcst/metadata/scope_provider.py +++ b/libcst/metadata/scope_provider.py @@ -789,10 +789,8 @@ def __init__(self, provider: "ScopeProvider") -> None: self.scope: Scope = GlobalScope() ...
4
1
0
[{"id": "G0", "claim": "The __in_ignored_subscript set could be removed and implemented instead by pushing False into __in_annotation_stack.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Replace the pop-then-append in visit_Call with self.__i...
null
Instagram__LibCST__554
Instagram/LibCST
554
defect
5c05001c2d7f7565cbdd9aa13e90f74749acfb79
21d14714b34f654d0a1d3873ac48e9a5eb17ec2e
Pin accesses to import alias node
## Summary Add ImportAssignment class extending Assignment to record assignments for import statements. ## Test Plan python -m unittest libcst.metadata.tests.test_scope_provider python -m unittest libcst.codemod.visitors.tests.test_gather_unused_imports Closes #485
diff --git a/libcst/codemod/visitors/_gather_unused_imports.py b/libcst/codemod/visitors/_gather_unused_imports.py index 89f378447..2dc439ac3 100644 --- a/libcst/codemod/visitors/_gather_unused_imports.py +++ b/libcst/codemod/visitors/_gather_unused_imports.py @@ -134,8 +134,7 @@ def is_in_use(self, scope: cst.metadata...
3
3
2
[{"id": "G0", "claim": "The new _add_assignment_as_parent method should have type annotations.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Refactoring record_assignment to call _add_assignment no longer lets scope overrides change which scope...
null
Instagram__LibCST__585
Instagram/LibCST
585
defect
3578f2fc3d60ce9dfda4e1c38e712e9c3c30bfbd
f3cbe02e31a829b17a4b5922c431025e9e58c80b
Support relative imports in AddImportsVisitor.
* Adds an Import dataclass to represent a single imported object * Refactors AddImportsVisitor to pass around Import objects * Separates out the main logic in get_absolute_module_for_import so that it can be used to resolve relative module names outside of a cst.Import node * Resolves relative module names in ...
diff --git a/libcst/_parser/parso/python/token.py b/libcst/_parser/parso/python/token.py index de8837193..3f9d1dc3d 100644 --- a/libcst/_parser/parso/python/token.py +++ b/libcst/_parser/parso/python/token.py @@ -26,7 +26,6 @@ class PythonTokenTypes: ERRORTOKEN: TokenType = native_token_type.ERRORTOKEN ...
4
3
1
[{"id": "G0", "claim": "The new dataclass `Import` should be renamed to `ImportItem` so people won't confuse it as much with `libcst.Import`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The suggested change adds an explicit `-> None` return a...
null
Instagram__LibCST__594
Instagram/LibCST
594
defect
8a7c13ff365a284f7bb7ff0bcd280cd6a5314436
a303e369ca7b60d9dfc838be3d3dce8889f32ff5
Codemod for PEP 484 Assign w / type comments -> PEP 526 AnnAssign
Summary: This codemod is intended to eventually handle all type comments from PEP 484. This is a partial implementation specifically handling assignment type comments, which as of PEP 526 are better dealt with using AnnAssign nodes. There is more work to do because there are two other kinds of comments to sup...
diff --git a/libcst/codemod/commands/convert_type_comments.py b/libcst/codemod/commands/convert_type_comments.py new file mode 100644 index 000000000..4f273e0ca --- /dev/null +++ b/libcst/codemod/commands/convert_type_comments.py @@ -0,0 +1,163 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source ...
3
3
3
[{"id": "G0", "claim": "Detecting type comments by regex-matching the comment text (TYPE_COMMENT_REGEX plus a type-ignore prefix check) is unreliable, and comment stripping should instead be driven by whether the containing ast node has a type comment attribute set.", "category": "correctness", "verdict": "supported", ...
null
Instagram__LibCST__599
Instagram/LibCST
599
defect
5f22b6c4383ebbbcee6af4bfc4d6c3aab2c38e6b
47edbbcc993a593b16189a77acd76af473aec822
Full handling for applying type comments to Assign
## Summary In the previous PR, I added basic support for converting an Assign with a type comment to an AnnAssign, as long as there was only one target. This PR handles all fully PEP 484 compliant cases: - multiple assignments - multiple elements in the LHS l-value We cannot handle arity errors because the...
diff --git a/libcst/codemod/commands/convert_type_comments.py b/libcst/codemod/commands/convert_type_comments.py index 337904d23..8d0477989 100644 --- a/libcst/codemod/commands/convert_type_comments.py +++ b/libcst/codemod/commands/convert_type_comments.py @@ -7,7 +7,9 @@ import builtins import functools import sys ...
4
3
2
[{"id": "G0", "claim": "The pull request uses ast.unparse, which only exists in Python 3.9+, while the version guard and error message still require only Python 3.8, so the required Python version must be bumped or a 3.8 substitute for ast.unparse found.", "category": "correctness", "verdict": "supported", "priority": ...
null
Instagram__LibCST__605
Instagram/LibCST
605
defect
5f22b6c4383ebbbcee6af4bfc4d6c3aab2c38e6b
04a93af0df2b3c5ea8df9abe8ade287d2ab67c94
add slots to base classes, @add_slots takes bases into account
## Summary See #574: many slots were missing in base classes, meaning we didn't get the full memory savings or the ability to block arbitrary attribute setting. Additionally, I found some slots overlapping where `add_slots` dataclasses inherited from each other. I think this [isn't even done right](https://bugs.p...
diff --git a/libcst/_add_slots.py b/libcst/_add_slots.py index 6e9c00415..4f9d2a2b2 100644 --- a/libcst/_add_slots.py +++ b/libcst/_add_slots.py @@ -1,8 +1,10 @@ # This file is derived from github.com/ericvsmith/dataclasses, and is Apache 2 licensed. # https://github.com/ericvsmith/dataclasses/blob/ae712dd993420d4344...
2
2
1
[{"id": "G0", "claim": "The pyre-ignore above CSTNode's `__slots__` can be removed by annotating it as `__slots__: Sequence[str] = ()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A unit test exercising the new logic in `add_slots` should be ...
null
Instagram__LibCST__641
Instagram/LibCST
641
defect
f0cca364b43ddd794407dba7499326ed15e29c3c
8e398dc8493a8e5774b61a70794c61c05e719cfe
Fix space validation for AsName and Await
## Summary Fixes #633. Unfortunately we have to move the validation of `AsName` to its parent because of different rules for different parents as well as the need for the preceding expression. ## Test Plan Added unit tests.
diff --git a/libcst/_nodes/expression.py b/libcst/_nodes/expression.py index 6b86a8b24..b65eb50cb 100644 --- a/libcst/_nodes/expression.py +++ b/libcst/_nodes/expression.py @@ -2394,7 +2394,12 @@ def _validate(self) -> None: # Validate any super-class stuff, whatever it may be. super(Await, self)._val...
1
1
1
[{"id": "G0", "claim": "The 'names' argument passed a single-element tuple without a trailing comma, so 'name' was not a tuple; add the trailing comma (and consider switching to lists everywhere in a dedicated PR).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Instagram__LibCST__660
Instagram/LibCST
660
defect
914b18339d0cce12d4de8db7593ea9d1819c363a
5aa3a4e55e33cab58596ca3cca3a74d6fd4c6347
Update relative import logic to match cpython
## Summary * LibCST does not correctly handle relative imports from an __init__.py file * Python relative imports work based on package name, not module name. * `a/b.y` and `a/b/__init__.py` have the same module name, but different package names. * So the same relative import statement in both of those files ...
diff --git a/libcst/codemod/_cli.py b/libcst/codemod/_cli.py index 4726a34f5..62d40e8fd 100644 --- a/libcst/codemod/_cli.py +++ b/libcst/codemod/_cli.py @@ -241,6 +241,11 @@ def _execute_transform( # noqa: C901 ), ) + # determine the module and package name for this file + ...
1
1
1
[{"id": "G0", "claim": "The change at this call site appears to be breaking tests on GitHub CI and needs to be revisited before merging.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Instagram__LibCST__674
Instagram/LibCST
674
defect
0a8ae91d39caa6065f920f290c1195ab1c217a61
c25c096f173e6d5ed4875c27d4b4a3bc38342b0d
Qualify imported symbols when the dequalified form would cause a conflict
## Summary Adds a preliminary pass that scans the stub file for all imported symbols, and collects the ones that cannot be safely dequalified. Fixes #673 ## Test Plan Added a test case to test_apply_type_annotations.
diff --git a/libcst/codemod/visitors/_apply_type_annotations.py b/libcst/codemod/visitors/_apply_type_annotations.py index d56477989..399306f2a 100644 --- a/libcst/codemod/visitors/_apply_type_annotations.py +++ b/libcst/codemod/visitors/_apply_type_annotations.py @@ -3,6 +3,7 @@ # This source code is licensed under t...
3
2
1
[{"id": "G0", "claim": "The new code in _get_module_imports uses too many short abbreviations (isc, sym, isym, imp), which is inconsistent with the existing naming style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop variable `ia` in v...
null