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
CST-Group__cst__20
CST-Group/cst
20
defect
9a1de7aa05ba4dd1ff14ef9c8ad307b51b77685c
5eaeff00c277f47016273e7fb6b9ebce4c1eb369
Codelet profiler
### Why was it necessary? There was a need to write down simulation values regarding Codelets and Memory Objects, in order to be able to draw charts and show experimental data. ### How was it done? We have created a Codelet Profiler to be able to do the job. ### How to test? Run `src/test/java/br/unicamp...
diff --git a/src/main/java/br/unicamp/cst/util/CodeletsProfiler.java b/src/main/java/br/unicamp/cst/util/CodeletsProfiler.java new file mode 100644 index 00000000..2502f823 --- /dev/null +++ b/src/main/java/br/unicamp/cst/util/CodeletsProfiler.java @@ -0,0 +1,193 @@ +package br.unicamp.cst.util; + +import java.io.Buffe...
13
8
2
[{"id": "G0", "claim": "The profiler tracks every codelet in parallel and cannot be limited to a chosen subset, with the risk of collecting huge amounts of data (~1GB files in tests).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The generated CSV is ha...
null
CST-Group__cst__38
CST-Group/cst
38
defect
06c667ccdf994fc49dc87bc1a38f378807ccde1d
9040be9041021e3b2f2dad7427c2a79143515d9f
Cst core
### Why was it necessary? There are some **JSOARCodelet** corrections (including not building SOAR *InputLink*, please review) and some tests regarding this binding. ### How was it done? Summarize what was your strategy to reach the objective ### Implementation details Go into further details about the i...
diff --git a/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java b/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java index 86aa6dbc..2a9544c7 100644 --- a/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java +++ b/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java @@ -16,6 +16,7 @@...
3
1
0
[{"id": "G0", "claim": "The type-conversion block added in buildObject uses deeply nested control flow statements and should be restructured.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out else-if block left in buildObject shou...
null
CST-Group__cst__40
CST-Group/cst
40
defect
feccbda61f9859972493496553d1ecdd48a66f65
565bdf945e0533073d177e6cb0c007a6bd39c642
tests on SOARPlugin
### Why was it necessary? Some tests on SOARPlugin directly
diff --git a/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java b/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java index 19419922..821d9d1d 100644 --- a/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java +++ b/src/main/java/br/unicamp/cst/bindings/soar/JSoarCodelet.java @@ -25,9 +25,6 @@...
4
1
0
[{"id": "G0", "claim": "The rewritten type-conversion method should avoid having so many return statements.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The near-identical per-type conversion blocks in the rewritten switch method (4 locations)...
null
CST-Group__cst__42
CST-Group/cst
42
defect
9c61e8c04f5cb98f8276283aa35f5206bf19a17a
0aa6a91085bb2e6fa63c484db903ce7b1d5ea64d
Cst core
### Why was it necessary? Explain here the main objective of this PR. ### How was it done? Summarize what was your strategy to reach the objective ### Implementation details Go into further details about the implementation. ### How to test? Give a concrete example on how to test what you have imp...
diff --git a/src/main/java/br/unicamp/cst/bindings/soar/SOARPlugin.java b/src/main/java/br/unicamp/cst/bindings/soar/SOARPlugin.java index 4bd47287..03d5713f 100644 --- a/src/main/java/br/unicamp/cst/bindings/soar/SOARPlugin.java +++ b/src/main/java/br/unicamp/cst/bindings/soar/SOARPlugin.java @@ -80,7 +80,6 @@ public ...
4
2
0
[{"id": "G0", "claim": "The getJavaObject method should be refactored because its cognitive complexity (19) exceeds the 15 allowed and its length (31 lines, re-reported as 28 after E011) exceeds the 25 allowed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
CST-Group__cst__47
CST-Group/cst
47
defect
5b4a660c85c7d5e77c09bee53bed02536e8e1ee8
31145787ffe180ab5aeac6dc8469ef337e96bebb
Rest server
### Why was it necessary? With the new split of the old CST into CST and cst-desktop, different kinds of visualization tools were made possible. The problem was that the new CST did not have a way to make the status of memories and codelets available for an external visualization tool. The current PR came to allow...
diff --git a/README.md b/README.md index 9e6964c9..8d776c0a 100755 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Note: This library is still under development, and some concepts or features mig ``` dependencies { ... - implementation 'com.github.CST-Group:cst:1.1.0' + implement...
8
3
2
[{"id": "G0", "claim": "Refactor the mountArray method to reduce its Cognitive Complexity from 30 to the 15 allowed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Refactor the convertObject method to reduce its Cognitive Complexity from 46 to...
null
CST-Group__cst__51
CST-Group/cst
51
defect
46d3598a53a1abd5ef5666e268b150c0681af398
00c2ecf4a047afbe154c832b0088143bda27a779
Rest
This PR contains the RESTMemory and HTTPCodelet classes, adding REST capabilities to CST
diff --git a/build.gradle b/build.gradle index ce0fda44..3ebed05e 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ configurations { dependencies { configurations.implementation.extendsFrom(configurations.extraLibs) - api 'com.google.code.gson:gson:2.8.6' + api 'com.google.code.gson:gson:2.8....
11
2
0
[{"id": "G1", "claim": "RESTMemory.setType is an empty override; the bot asks to add a comment explaining why the method is empty, throw an UnsupportedOperationException, or complete the implementation.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": ...
null
CST-Group__cst__53
CST-Group/cst
53
defect
2fa1b7256869a1270b9175e7f609c12684e800a3
913d78fecdba0187a37a3f5fa9fd85656dbc2222
Concepts
### Why was it necessary? Small advancements over the last concepts commit ### How was it done? Small corrections on the code ### Implementation details Nothing to state ### How to test? Running the unit tests ### Future works Including further developments
diff --git a/src/main/java/br/unicamp/cst/core/entities/Codelet.java b/src/main/java/br/unicamp/cst/core/entities/Codelet.java index 0dcb1951..dc492aad 100755 --- a/src/main/java/br/unicamp/cst/core/entities/Codelet.java +++ b/src/main/java/br/unicamp/cst/core/entities/Codelet.java @@ -808,10 +808,10 @@ public synchron...
1
1
0
[{"id": "G0", "claim": "Define a constant instead of duplicating the literal \"Property\" 7 times in Idea.java.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CTR-tools__CTR-ModSDK__234
CTR-tools/CTR-ModSDK
234
defect
8eb439a921541bcde03782da6489313a76a8833a
70941d8a9099316b574225a1b92eb2f2e3ac7670
LIST namespace
WIP, need to write tests for the newly added stuff
diff --git a/include/ctr/list.h b/include/ctr/list.h new file mode 100644 index 000000000..60bd4cd34 --- /dev/null +++ b/include/ctr/list.h @@ -0,0 +1,24 @@ +#pragma once + +typedef struct Item +{ + struct Item* next; + struct Item* prev; +} Item; + +typedef struct LinkedList +{ + Item* first; + Item* last; + int count...
3
2
0
[{"id": "G0", "claim": "Short one-line if statements should be written on one line with braces, e.g. `if (cond) { action(); }`, instead of a multi-line body.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider setting `itemSize` as unsigned and using ...
null
CUBRID__cubrid__4432
CUBRID/cubrid
4,432
defect
1a7b943209e18b601e39035757a95ef9efc843c0
8b14d6db4125a15fd50fa808f65d4a8c333b628f
[CBRD-24850] Enhancing group_concat() Performance by Optimizing String Size and Length Calculation Methods
http://jira.cubrid.org/browse/CBRD-24850 This pull request introduces the following changes to enhance the performance of the group_concat() function: 1. A **_medium.length_** component has been added to DB_CHAR, which is one of the constituents of DB_VALUE (db_value->data.ch.medium.length). Code has been added t...
diff --git a/src/compat/db_macro.c b/src/compat/db_macro.c index a39e32899c2..2410c296430 100644 --- a/src/compat/db_macro.c +++ b/src/compat/db_macro.c @@ -526,6 +526,7 @@ db_value_domain_min (DB_VALUE * value, const DB_TYPE type, value->data.ch.info.is_max_string = false; value->data.ch.info.compressed_...
2
2
0
[{"id": "G0", "claim": "The new trailing comment on the added `int length;` member should use the surrounding block-comment style (`/* ... */`) instead of a line comment (`//`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In db_get_string_len...
null
CUBRID__cubrid__5352
CUBRID/cubrid
5,352
defect
10e0aa32de5c9f86296f6f4d53b5f6b1d473bfce
c3f23c8e59af51b415a1e68fcbe00a299cbfde72
[CBRD-25473] 서브 쿼리의 호스트 변수 처리
http://jira.cubrid.org/browse/CBRD-25473 서브쿼리 캐시 관련하여 메인 쿼리와 서브쿼리의 호스트 변수를 명확하게 처리하기 위한 이슈로, 기존의 처리 방식을 개선하여 메인 쿼리와 서브쿼리의 호스트 변수를 독립적으로 분리하기 위한 로직을 구현한다. 그리고 메인 쿼리에서 분리된 서브 쿼리의 실행 계획과 동일한 문장을 가진 단일 쿼리가 캐시를 공유할 수 있도록 로직을 개선할 필요가 있다. 예를 들면, 아래의 두 쿼리는 하나의 캐시로 공유가 되어야 한다. 기존의 로직에서는 동일한 실행 계획으로 생성되지 못해서 캐시가 공유되지 못했...
diff --git a/src/compat/db_vdb.c b/src/compat/db_vdb.c index dd34833344c..8b536ac2993 100644 --- a/src/compat/db_vdb.c +++ b/src/compat/db_vdb.c @@ -1657,12 +1657,12 @@ do_execute_subquery_pre (PARSER_CONTEXT * parser, PT_NODE * stmt, void *arg, int *continue_walk = PT_CONTINUE_WALK; - if (!PT_IS_QUERY_NODE_TYP...
17
15
4
[{"id": "G0", "claim": "The DB_VALUE cloned into context.host_variables in do_prepare_subquery is never cleared — when is it released?", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the restore loop, setting hv->info.host_var.next = NULL before i...
null
CUBRID__cubrid__5354
CUBRID/cubrid
5,354
defect
59c98d544ed664bcc97d15c845f4cb898a277c7a
38632ea268e058ff77228e3c4c36998ac9592c69
[CBRD-24786] Support managing authorizations (GRANT/REVOKE) for stored procedures
http://jira.cubrid.org/browse/CBRD-24786 http://jira.cubrid.org/browse/CBRD-24912 #### Implementation - add 'object_type' in _db_auth to represent database object's type. - revise 'class_of<_db_class>' to 'object_of <object>' in _db_auth. - extend db_grant and db_revoke: do_grant and do_revoke to accept DB_OBJEC...
diff --git a/src/compat/db_admin.c b/src/compat/db_admin.c index bfe4aa57f33..cc4601ba908 100644 --- a/src/compat/db_admin.c +++ b/src/compat/db_admin.c @@ -1805,6 +1805,39 @@ db_set_user_comment (DB_OBJECT * user, const char *comment) return (retval); } +/* + * db_get_object_type() - This returns database object...
9
8
2
[{"id": "G0", "claim": "The DBG_TRACE_GRAMMAR label for the new revoke_proc_cmd grammar rule omits identifier_list, so the parser debug trace names the rule wrong.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "db_get_object_type() compares OID poin...
null
CUBRID__cubrid__5942
CUBRID/cubrid
5,942
defect
c8c40443b62284704572fbf477d94451cb91cd19
1e740177d111a9873a0791bb88858b5d786b2f2d
[CBRD-25825] Fix windows build: Add dependency to configure JDK before building libcubridcs and libcubrid
http://jira.cubrid.org/browse/CBRD-25825 ### Purpose Windows 빌드에서, Parallel build로 수행되는 경우 pl_engine에서 JVM를 포함한 JDK가 설정되기 전에 JVM이 필요한 sa, cubrid 라이브러리가 먼저 빌드되어 실패하는 경우가 있으며, QA 시스템에서 발견되었다. 관련하여 빌드 방법을 정리하여 cubrid의 sa, cubrid, cs와 JVM과의 의존성을 없애고 빌드가 성공하도록 수정한다. ### Implementation - CMakeLists 수정 - JVM ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c196b871b9..bddeff78860 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -798,12 +798,6 @@ else(USE_CUBRID_ENV) set(CUBRID_COMPATDIR compat CACHE STRING "The directory for compatible files") endif(USE_CUBRID_ENV) -# For JVM libraries -# if(WIN32) -# set(JV...
1
1
1
[{"id": "G0", "claim": "Before dropping JVM_LIBS, check whether the JVM library is needed by other libraries or executions besides cub_pl, and remove it only if not.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CUBRID__cubrid__6090
CUBRID/cubrid
6,090
defect
a9530f37ca9b5d2f515c61c811a491a1be745fda
f84ac28c1be8244968640f42e83f8a836f470aec
[CBRD-25978] refactoring to system parameters
<http://jira.cubrid.org/browse/CBRD-25978> ### Purpose * refactoring system_parameter.c ### Implementation 1) 아래 함수들은 PARAM_NAME 대신 PARAM_ID를 인수로 사용할 수 있도록 변경 sysprm_set_force(), sysprm_set_to_default() sysprm_check_range(), sysprm_get_range() 2) system_parameter.h에 있던 매크로들 중 syste...
diff --git a/src/api/db_stub.c b/src/api/db_stub.c index 97d3d814286..52898fc30cf 100644 --- a/src/api/db_stub.c +++ b/src/api/db_stub.c @@ -2681,7 +2681,7 @@ conn_restart_client (CI_CONN_STRUCTURE * pconn, const char *program, int print_v if (port > 0) { sprintf (port_string, "%d", port); - sysprm_...
14
9
3
[{"id": "G0", "claim": "The reviewer asks whether msgcat_init can break out of the loop right after setting rc = ER_FAILED instead of continuing to iterate after a failed msgcat_open.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #if 1 / *INDENT-OFF...
null
CUBRID__cubrid__6168
CUBRID/cubrid
6,168
defect
f7903a5a3d2c52e6f86fb6bba1043a9e846e14c6
421977a6b65f9cc1875e21b977c0908b0fade5cc
[CUBVEC-65] Euclidean Operator (<->)
<http://jira.cubrid.org/browse/CUBVEC-65> ### Purpose 벡터 거리 연산을 위한 `<->` L2 distance operator를 구현합니다. ```make run-euclidean-operator: csql.sh -c "select '[1, 2, 3]' <-> '[2, 3, 4]';" run-create-table: csql.sh -c "drop table if exists tbl; create table tbl (id int, vec vector); insert into tbl val...
diff --git a/src/optimizer/query_graph.c b/src/optimizer/query_graph.c index dd6583c74c4..c7c7a56a32e 100644 --- a/src/optimizer/query_graph.c +++ b/src/optimizer/query_graph.c @@ -60,6 +60,8 @@ #include "dbtype.h" #include "xasl.h" +#include "cubvec_assert.h" + /* figure out how many bytes a QO_USING_INDEX struct...
4
4
2
[{"id": "G0", "claim": "The ASSERT_CUBVEC (false) added to the default case of pt_is_pseudo_const can fire for other expressions, so it should be removed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The ASSERT_CUBVEC (false) added to the default ...
null
CUBRID__cubrid__6174
CUBRID/cubrid
6,174
defect
91b3821016d2e9de34302b15d2d843b253992bfc
63cd6357684c670efa03127f78009abe36bf35cd
[CUBVEC-71] HNSW Vector Distance: Execution Plan & Scan Implementation
http://jira.cubrid.org/browse/CUBVEC-71 ### Purpose 벡터 인덱스 스캔에 대한 실행 계획 생성과 벡터 인덱스 스캔 구현 ### Implementation - plan_generation.c: predicate REGU_VAR 생성을 위해 로직 진행하도록 수정 - e.g.) SELECT /*+ recompile */ id FROM items **WHERE id < 5** ORDER by l2_distance(vc1, '[0,0,0]') LIMIT 3; - xasl_generation.c: ...
diff --git a/src/compat/db_value_printer.cpp b/src/compat/db_value_printer.cpp index 5087d5df74e..c261b3d0ca8 100644 --- a/src/compat/db_value_printer.cpp +++ b/src/compat/db_value_printer.cpp @@ -36,6 +36,7 @@ #if !defined(SERVER_MODE) #include "virtual_object.h" #endif +#include "db_vector.hpp" // XXX: SHOULD BE ...
3
1
0
[{"id": "G0", "claim": "The disabled assert(false)/ER_FAILED handling in xhnsw_delete_index (now returning NO_ERROR) looks like it will need to be reverted once CUBVEC-72 is completed.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new RANGE enu...
null
CUBRID__cubrid__6253
CUBRID/cubrid
6,253
defect
2fbea681cc76fdc49d302478c92be8a29d8385d0
3e829456e38321e75a4955ffe80629d11c3e7b34
[CBRD-26126] clear compile warnings
<http://jira.cubrid.org/browse/CBRD-26126> ### Purpose * 컴파일 과정에서 발생하는 경고 메세지 정리 * 이후 컴파일에서 발생하는 경고는 개발자가 스스로 정리할 수 있도록 유도 필요 ### Implementation 아래 처리 대상 목록임. [-Wdiscarded-qualifiers] [-Wenum-compare] [-Wextra] [-Wsign-compare] [-Wstrict-aliasing] [-Wmissing-field-initializers] [-Wreturn-type] [-Wpoi...
diff --git a/src/api/cubrid_log.c b/src/api/cubrid_log.c index 07000082525..13f8b715c9d 100644 --- a/src/api/cubrid_log.c +++ b/src/api/cubrid_log.c @@ -147,6 +147,7 @@ data_item_type_to_string (int data_item_type) return "TIMER"; default: assert (0); + return ""; } } @@ -206,10 +207,10 ...
20
12
1
[{"id": "G0", "claim": "The new NULL initialization of tmp_query at its declaration is unnecessary since the variable is first assigned at line 1597.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The volatile qualifier newly added to the unshared...
null
CUBRID__cubrid__6368
CUBRID/cubrid
6,368
defect
20340f8a6fbaadf148ff93fef418e116fea5c026
b4f5bfcd4226787730323b8b22f5833d21fefdf3
[CUBVEC-111] Support loading vector index
<http://jira.cubrid.org/browse/CUBVEC-111> ### Purpose Vector Column이 존재하는 테이블에, 이미 레코드가 존재하는 경우, Vector Index 생성을 지원한다. ### Implementation - Client-Server 간의 Index Loading 통신 로직 구현 - `hnsw_load_index()` - `shnsw_load_index()` - `xhnsw_load_index()` - Index Loading 관련 동작 구현 (`xhnsw_load_index`) ...
diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ec8fa5f58e..2e5a84dfd58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -372,7 +372,6 @@ jobs: key: "cubrid-testcases-private-ex-develop-${TC_PRIVATE_SHA}" paths: - cubr...
2
2
2
[{"id": "G0", "claim": "In shnsw_load_index the buffers attr_ids, class_oids and hfids are never freed after the reply is sent, which in debug mode shows up as restrict_assert(false) when creating a vector index; the suggested patch adding db_private_free_and_init for them should be applied.", "category": "correctness"...
null
CUBRID__cubrid__6673
CUBRID/cubrid
6,673
defect
f83c1b9e6b93467feb98ded0f8431ccab97a76de
3007811d26b81d10adc0cbf235feba527bec174d
[CBRD-26252] prohibit stored procedures from being invoked SQL statements other than CALL statements
<http://jira.cubrid.org/browse/CBRD-26252> ### Purpose - CALL 아닌 SQL 문에서 stored procedure 를 호출하면 에러 (stored function 은 변함 없이 허용) - CALL 이 stored procedure 를 호출할 때 INTO 절이 있으면 에러 ### Implementation 시맨틱 체크 과정에서 (pt_check_with_info, pt_semantic_check_local) 해당 검사를 추가함. ### Remarks N/A
diff --git a/msg/en_US.utf8/cubrid.msg b/msg/en_US.utf8/cubrid.msg index e0b553c88fd..04903d1f88f 100644 --- a/msg/en_US.utf8/cubrid.msg +++ b/msg/en_US.utf8/cubrid.msg @@ -1967,6 +1967,8 @@ $set 8 MSGCAT_SET_PARSER_SEMANTIC 330 String representation of a default value of a Stored procedure/function parameter may no...
3
2
1
[{"id": "G0", "claim": "The function comment left by the rename says 'pt_find_method_call () - search for a stored procedure' and should be updated to describe a method call.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stored-procedure usab...
null
CZ-NIC__pyoidc__379
CZ-NIC/pyoidc
379
defect
3149cdf4daa61d16c58763c602ff42fbfae5ac91
53f9b93d4800b2fc7f25d5dc9a5aab18e737286f
Kmk
Changed the behaviour when a signed JWT is received that contains no kid while the JWKS of the issuer contains more then one key that could have been used. The default behaviour is that the verification should fail when this happens. This is what the standard specifies as the expected behaviour. But if one wants...
diff --git a/src/oic/oauth2/message.py b/src/oic/oauth2/message.py index b9ad96c2f..9cb9e5d68 100644 --- a/src/oic/oauth2/message.py +++ b/src/oic/oauth2/message.py @@ -473,28 +473,55 @@ def to_jwt(self, key=None, algorithm="", lev=0): _jws = JWS(self.to_json(lev), alg=algorithm) return _jws.sign_comp...
7
5
0
[{"id": "G0", "claim": "The allowed-kids key-collection loop should be collapsed into a list comprehension: key.extend([k for k in kl if k.kid in allowed_kids]).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The branch that appends every key co...
null
CZ-NIC__pyoidc__427
CZ-NIC/pyoidc
427
defect
49ea5e8f4d5350344c80019ec09492ab926a6ab6
8263ba866fac2a576d41d33539790b793e09f72d
Response types
Dealing with issue #399 Sorry about the extra commits. Just tried to even them out. Thanks for contributing to this library! Please include the following check list in your pull request submission (you can delete this message). If your changes don't need a change log or documentation update, please ignore this...
diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd897d99..63aa38601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ The format is based on the [KeepAChangeLog] project. [KeepAChangeLog]: http://keepachangelog.com/ +## 0.13.0 [Unreleased] + +### Fixed +- [#427] Dealing with unordered response_types +-...
6
6
2
[{"id": "G0", "claim": "The CHANGELOG entry 'Dealing with unordered response_types' should be reworded to something more descriptive, such as 'Made matching for response_types less strict for authorization requests', that a reader scanning for what changed can find.", "category": "documentation", "verdict": "supported"...
null
CZ-NIC__pyoidc__430
CZ-NIC/pyoidc
430
defect
bb8e71a7c46f83dc5da4afa8b2a674a20dbd3f24
26f4ecd33debcf435fbbb976b9b6b48fd43ec150
Audience is endpoint dependent.
Thanks for contributing to this library! Please include the following check list in your pull request submission (you can delete this message). If your changes don't need a change log or documentation update, please ignore this. - [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The doc...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f628f2c51..9693117ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,11 @@ The format is based on the [KeepAChangeLog] project. ## 0.13.0 [Unreleased] ### Fixed +- [#430] Audience of a client assertion is endpoint dependent. - [#427] Made matching for response...
1
1
1
[{"id": "G0", "claim": "The branch the pull request adds in construct() that sets the audience to provider_info['token_endpoint'] is never covered by tests, and it is what causes the coverage drop.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CZ-NIC__pyoidc__493
CZ-NIC/pyoidc
493
defect
2feb099f4f4e26047888437aea1226237d05ebba
21fa3fe65f2ea97d1f50b2f67fdcb2281318ca3a
grant_types should follow response_types in a client registration req…
grant_types should follow response_types in a client registration request - [x ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad7c5534..db9c10d06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on the [KeepAChangeLog] project. ## 0.13.0 [Unreleased] ### Added +- [#493] grant_types specification should follow the response_types sprecification in a client regis...
5
5
2
[{"id": "G0", "claim": "The changelog entry misspells 'specification' as 'sprecification' and should read 'specification'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new rt2gt mapping and response_types_to_grant_types helper should be cove...
null
CZ-NIC__pyoidc__506
CZ-NIC/pyoidc
506
defect
f1d7e29a3d60fa7bfc5b65a30be211a786839a8e
12a4d3d0520c182715fd32273ab6217ca3c327d2
Fix UserInfo endpoint for deleted clients
Close #503 - [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index e2122c58f..7c6f98a0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ The format is based on the [KeepAChangeLog] project. ## 0.X.X [Unreleased] +### Fixed +- [#503] Fix error on UserInfo endpoint for removed clients + ### Removed - [#494] Methods and fu...
2
1
0
[{"id": "G0", "claim": "The unknown-client case in _do_user_info could be handled inside the existing except block instead of the added explicit None check.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use double quotes to match the o...
null
CZ-NIC__pyoidc__510
CZ-NIC/pyoidc
510
defect
f1d7e29a3d60fa7bfc5b65a30be211a786839a8e
1d3b3000da4886d99a8aae700426d8ceafab4c66
Remove duplicate mapping in Client_db
Close #507 Close #499 - [x] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index e2122c58f..40e07584c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,15 @@ The format is based on the [KeepAChangeLog] project. ### Removed - [#494] Methods and functions deprecated in previous releases have been removed +### Changed +- [#507] Altered struct...
2
2
2
[{"id": "G0", "claim": "The registration_access_token check in read_registration should use a constant-time compare function and should also always check the token against a dummy value when the client_id does not exist, otherwise a timing attack could guess the registration_access_token and give access to the client_s...
null
CZ-NIC__pyoidc__553
CZ-NIC/pyoidc
553
defect
69a7ef59c1f40c29313354e034bc15bfff92921b
8708520968c663496693328ec8aea6a2313711b0
On reload don't store duplicated keys
If a key bundle is reloaded care should be taken to not store keys that already are in the key bundle. - [X ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index c530c3faf..a01ccc868 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ The format is based on the [KeepAChangeLog] project. ## 0.14.0 [2018-05-15] ### Fixed +- [#553] Made sure a a reload would not lead to duplicated keys in a keybundle. - [#534] Fixed a bu...
3
3
0
[{"id": "G0", "claim": "The #553 entry must not sit in the already-released 0.14.0 section of CHANGELOG.md; a new section for unreleased (0.15.0) changes should be opened on top and the entry moved there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
CZ-NIC__pyoidc__587
CZ-NIC/pyoidc
587
defect
812790af84723e8c24c749eb813bfc89b7f5bfb2
59f4df17a03a9d5196026c8b32cbf1038fb551b1
Bunjiboys jwks content type
- [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cf94706b..99801b6cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on the [KeepAChangeLog] project. - [#571] Return error when when resolving request_uri fails - [#579] Fix error with unicode chars in redirect_uris - [#581] Fix error...
1
1
1
[{"id": "G0", "claim": "The Content-Type value comparison is case-sensitive although 'application/json' is case-insensitive per RFC 7231, so this might fail for some strange responses unless response.headers normalizes the value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
CZ-NIC__pyoidc__613
CZ-NIC/pyoidc
613
defect
c3752eef8d9f04d65432c7851b836b93289b5e09
8bac5e7ae0071feec534a3e47fb1d817ec2ebd96
Fix: Grant storage for access tokens response subclasses
- [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. --- It fixes the issue we discovered on #608
diff --git a/src/oic/oauth2/__init__.py b/src/oic/oauth2/__init__.py index b247f4178..fbe82543e 100644 --- a/src/oic/oauth2/__init__.py +++ b/src/oic/oauth2/__init__.py @@ -555,7 +555,7 @@ def parse_response(self, response, info="", sformat="json", state="", self.store_response(resp, info) - if resp...
1
1
0
[{"id": "G0", "claim": "The new test test_access_token_request_with_custom_response_class should probably be placed in tests/test_oauth2_consumer.py, since the fix it exercises is there, rather than in tests/test_oic.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CZ-NIC__pyoidc__648
CZ-NIC/pyoidc
648
defect
481a36ae50c92d369433c668da385d41df26c2e5
990ffb5dc5636649a2fd66ce495bf066452ffc90
Moved provider_info_endpoint from extensions to oauth
Part of #638 - [x] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cc1d863a..e5d2fa201 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ The format is based on the [KeepAChangeLog] project. ### Added - [#655] Host can be forced on webfinger discovery - [#441] CookieDealer now accepts secure and httponly params +- [#638] M...
2
2
0
[{"id": "G0", "claim": "The docstring says 'Overriden', which should be spelled 'Overridden'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The non-standard 'x-ffo' response header is nonsense and should be removed from providerinfo_endpoint.", "...
null
CZ-NIC__pyoidc__660
CZ-NIC/pyoidc
660
defect
68d3fa42ecfcb43f8bd8759858a2db1525502ced
d16fd16cd2aaeb5c1c67fa08550bca772007ee90
Shared sessiondb
- [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. ---
diff --git a/src/oic/oic/provider.py b/src/oic/oic/provider.py index eb8d157c9..a4e937240 100644 --- a/src/oic/oic/provider.py +++ b/src/oic/oic/provider.py @@ -571,7 +571,7 @@ def _get_sids_from_cookie(self, cookie): if typ == "sso": uid, client_id = value.split(DELIM) tr...
3
2
0
[{"id": "G0", "claim": "The abstract get_by_sub method should declare its parameter as `sub`, not `uid`, since it returns session ids based on the external user identifier.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The API assumes the authn eve...
null
CZ-NIC__pyoidc__708
CZ-NIC/pyoidc
708
defect
6c5afa3f5088ba5799189285e1738d60557c2e64
b4f07011d2343f91fa68bb471939223e49418824
Wants the original non-parsed JWT and not an IDToken instance.
- [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. - [ ] New code is annotated. - [ ] Changes are covered by tests. ---
diff --git a/CHANGELOG.md b/CHANGELOG.md index f1f824f5f..2a8ec0e89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on the [KeepAChangeLog] project. - [#679] Make `state` optional in `EndSessionRequest` - [#683] Fix basic_auth with client password - [#698] `state` in `EndSessionReq...
3
2
2
[{"id": "G0", "claim": "Add a `type: ignore` comment on the offending line where mypy cannot recognize the dynamically created attributes of the Client.", "category": "tooling", "verdict": "uncertain", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The #708 changelog entry must be moved to the Unreleased...
null
CZ-NIC__pyoidc__711
CZ-NIC/pyoidc
711
defect
27feaf8f62b3d671910177b97ec2f9a47df94283
3f0d362a0c412c4bf4ce8ab5263d68fdfe18865d
Allow no post_logout_redirect_uri
- [x] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. - [ ] New code is annotated. - [x] Changes are covered by tests. --- If no post_logout_redirect_uris are registered and no post_logut_redirect_uri appears in the request, the user will b...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 86b3fcf5d..4bea736b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ The format is based on the [KeepAChangeLog] project. ## Unreleased +### Fixed +- [#711] Deal with no post_logout_redirect_uri + +[#711]: https://github.com/OpenIDC/pyoidc/pull/711 + ##...
2
2
2
[{"id": "G0", "claim": "The test for None of the uid from the cookie should be explicit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When no post_logout_redirect_uri is configured, self.post_logout_page defaults to an empty string and the endpoin...
null
CZ-NIC__pyoidc__723
CZ-NIC/pyoidc
723
defect
01b27c40e9e1f0951b43f2b19a9247bc7f16f26f
8552ade9be82a7efecdcceaf160eb8fac194f142
Settings
- [ ] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [x] The documentation has been updated, if necessary. - [x] New code is annotated. - [ ] Changes are covered by tests. --- Basic idea of settings. Mostly as a proof of concept and for design review. This attempts to fix several issues reg...
diff --git a/doc/conf.py b/doc/conf.py index b987c1f58..c0b91277a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -2,8 +2,11 @@ extensions = [ 'sphinx.ext.autodoc', + 'sphinx.ext.napoleon', ] +autoclass_content = 'both' # Merge the __init__ docstring into the class docstring. + templates_path = ['_templat...
1
1
0
[{"id": "G0", "claim": "In the verify_ssl docstring of src/oic/utils/settings.py, the word \"his\" should be \"this\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CZ-NIC__pyoidc__896
CZ-NIC/pyoidc
896
defect
a4cff6dbee32f246c8ffd3375091e53ab212f3a2
4740551cd290d0a4f9e1495d8d0be96d4fac0100
Add the `prompt` parameter to `oic.oic.Consumer.begin`
- [x] Any changes relevant to users are recorded in the `CHANGELOG.md`. - [ ] The documentation has been updated, if necessary. - there is no documentation for the `Consumer` classes at all - [x] New code is annotated. - [x] Changes are covered by tests. - I haven't been able to test the changes, as I had pr...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4639f4b5..036e8700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on the [KeepAChangeLog] project. ## Unreleased +- [#896]: Add the `prompt` parameter to `oic.oic.Consumer.begin` + +[#896]: https://github.com/CZ-NIC/pyoidc/pull/896 +...
1
1
1
[{"id": "G0", "claim": "The `prompt` parameter should default to `None` instead of `\"\"`, and `prompt` should be omitted from the created authorization URL args when it is `None`, since `\"\"` is not a valid value for the optional parameter; please also add a test for the `None` case.", "category": "correctness", "ver...
null
CacheControl__json-rules-engine__146
CacheControl/json-rules-engine
146
defect
2d6e834b1d5a68b1a3975e3f1729b0b2ea847efa
ef16e1788bb396536bd0951d17115f5d9e81ed51
Adds "name" property to Rule and RuleResult
Resolves #144 I'm not sure that `name` is best here. Maybe `id` or something similar would be better. I didn't go with `id`, as that would insinuate that it must be unique per rule, which is not the case.
diff --git a/src/rule-result.js b/src/rule-result.js index 0f6992a..b0cc92a 100644 --- a/src/rule-result.js +++ b/src/rule-result.js @@ -3,10 +3,11 @@ import deepClone from 'clone' export default class RuleResult { - constructor (conditions, event, priority) { + constructor (conditions, event, priority, name) { ...
2
2
0
[{"id": "G0", "claim": "setName should allow the name to be of multiple types (e.g. an object carrying several identifiers) rather than restricting it to non-empty strings, since the functionality would come for free by being less strict.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
CacheControl__json-rules-engine__237
CacheControl/json-rules-engine
237
defect
da33878e76afb9e91cb6d6a411558775f919d50a
b4bfae12346f4c94ef588b3cb364245993b09163
Convert engine events to use EventEmitter2; wait for promises to resolve
Uses the `emitAsync()` feature of EventEmitter2 to ensure promises returned to emitted events resolve before engine continues
diff --git a/CHANGELOG.md b/CHANGELOG.md index 181fe45..e003583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +#### 6.0. / 2020-12-XX + * BREAKING CHANGES + * Private `rule.event` property renamed. Use `rule.getEvent()` to avoid breaking changes in the future. + * Engine and Rule events `on('succe...
2
2
1
[{"id": "G0", "claim": "In the current implementation 'success' and the event-type event were triggered sequentially, but this change triggers them concurrently via Promise.all; the reviewer asks whether that is intentional.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
CacheControl__json-rules-engine__339
CacheControl/json-rules-engine
339
defect
351ffc5c584400ea204699aba6340015e93f13a2
b19cff2ae3aebaaf9c3be34284d94278ba93767b
Condition Sharing
This introduces the concept of Condition sharing which allows regular conditions that are given a well-known name and to be added to the engine. Rules can reference the condition by including a `condition` property on a condition. example based on #296 ```js engine.setCondition('isMinor', { all: [ { ...
diff --git a/docs/rules.md b/docs/rules.md index 187c230..d17dc41 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -14,7 +14,7 @@ Rules contain a set of _conditions_ and a single _event_. When the engine is ru * [toJSON(Boolean stringify = true)](#tojsonboolean-stringify--true) * [Conditions](#conditions) ...
8
7
5
[{"id": "G0", "claim": "The new condition-reference type declares `priority` and `name` in the reverse order from their other condition-type counterparts; they should match.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G3", "claim": "Add a test or an example...
null
CacheControl__json-rules-engine__404
CacheControl/json-rules-engine
404
defect
00061aceb905d1b0e8f571ef3baf200dc32ded61
16a80a7af4e610b51c8f7d348a0ac56bb2d9beca
call Rule.ruleEvent by its correct name
Currently, the [types](https://github.com/CacheControl/json-rules-engine/blob/00061aceb905d1b0e8f571ef3baf200dc32ded61/types/index.d.ts#L178) suggest that `Rule` has a property called `event`, but the property is actually called `ruleEvent`, as evidenced by [this test](https://github.com/CacheControl/json-rules-engine/...
diff --git a/src/rule.js b/src/rule.js index 3d52fbf..98007e8 100644 --- a/src/rule.js +++ b/src/rule.js @@ -101,6 +101,7 @@ class Rule extends EventEmitter { this.ruleEvent = { type: event.type } + this.event = this.ruleEvent if (event.params) this.ruleEvent.params = event.params return t...
2
2
1
[{"id": "G0", "claim": "Renaming Rule's `event` property to `ruleEvent` is a breaking change, so instead a property called `event` should be added to the rule to keep the change non-breaking on both the types and the implementation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
CadQuery__cadquery__1063
CadQuery/cadquery
1,063
defect
803a05e78c233fdb537a8604c3f2b56a52179bbe
6ae52202a7b1350d59941e3654f020f2c1f08dd9
Better assy solver implementation
This PR implements a new assy solver based on Casadi (for autodiff) and IPOPT (actual optimizer, called via casadi).
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 510ce6f5e..7bce06d08 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -357,13 +357,14 @@ def solve(self) -> "Assembly": ents = {} i = 0 - locked = [] + locked: List[int] = [] + for c in self.constrai...
9
7
4
[{"id": "G0", "claim": "For FixedRotation constraints, gp_Extrinsic_XYZ would likely be a better default than the intrinsic Euler convention used.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A single unary constraint such as assy.constrain(\"b1\", \"F...
null
CadQuery__cadquery__1106
CadQuery/cadquery
1,106
defect
f3b0b09fe8be805c96710c7aa774204096260378
3dfa674242660ee0822c394ffc1b759bb77b119d
Add option to export binary STL
* exporters.export add "ascii" (or "ASCII") options dict * Shape.exportStl add "ascii" bool param * fix corrupt docstrings/typos in shapes.py
diff --git a/.coveragerc b/.coveragerc index c8086ea47..ff0e444cf 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,6 +3,7 @@ branch = True omit = cadquery/utils.py cadquery/cq_directive.py + tests/* [report] exclude_lines = diff --git a/cadquery/occ_impl/exporters/__init__.py b/cadquery/occ_impl/expo...
2
2
0
[{"id": "G0", "claim": "The walrus/list-comprehension that picks the ascii option in export()'s STL branch is hard to follow, and the reviewer suggests rewriting it as the proposed if/else on opt before calling exportStl.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
CadQuery__cadquery__113
CadQuery/cadquery
113
defect
d37dda759d3cb430d988341ed4a3603c0510038b
0764e2b65e13abc7d8e78524bf0b5ea0111a1f57
cutThruAll based on BRepFeat_MakeDPrism
This PR will resolve #98 . ### Before: ```python import cadquery as cq result = cq.Workplane("front").box(3.0, 4.0, 0.25).pushPoints ( [ ( 0,0.75 ),(0, -0.75) ]) \ .polygon(6, 1.0).cutThruAll() show_object(result) ``` ![afbeelding](https://user-images.githubusercontent.com/13981538/53566768-75735200-3b5d...
diff --git a/cadquery/cq.py b/cadquery/cq.py index 20cd2941f..0243a0095 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -432,6 +432,20 @@ def end(self): else: raise ValueError("Cannot End the chain-- no parents!") + def _findType(self, types, searchStack=True, searchParents=True): + + ...
3
1
0
[{"id": "G0", "claim": "When no face is selected on the stack, the pull request should raise an error instead of the magic fallback that silently picks the nearest face parallel to the current plane, since that situation is most likely the user's fault.", "category": "design", "verdict": "opposed", "priority": "P2", "s...
null
CadQuery__cadquery__1226
CadQuery/cadquery
1,226
defect
23560289f1b76c25e2f06a0bbc9c17ebfebd5824
35960e1f874893763ba35b88c4cff015d9eaacb3
Limit DXF BSpline Degree
Most DXF renderers and processing tools can't handle BSplines with degree >= 3 (order >= 4). For maximum compatibility, we should approximate such BSplines using degree-3 splines. This change uses the OpenCascade facilities to do so, though ezdxf.math also provides some spline approximation facilities that could be use...
diff --git a/.gitignore b/.gitignore index 051083d79..bd1481abd 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ target/* MANIFEST out.* res?.dxf +limit?.dxf .~* .*.swp assy.wrl diff --git a/cadquery/occ_impl/exporters/__init__.py b/cadquery/occ_impl/exporters/__init__.py index 234c91ef7..fea13e38a 100644...
9
8
3
[{"id": "G0", "claim": "The approximation severely degrades the accuracy of the exported DXFs (orders of magnitude), which could probably be recovered by making the allowed approximation error smaller.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "...
null
CadQuery__cadquery__1234
CadQuery/cadquery
1,234
defect
2997a3abe5ec0c9fbb39833d42bb0331cf7d16fe
29a3a122f359254f06c7d75753ed57be733c1e37
fix bug: extrude both direction and cut #1090
This RP tries to fix a bug #1090 that when `both=True` and `combine="cut"` used in `extrude`, the `both=True` is ignored. The simple fix is to add a `both` argument to `cutBlind`, which is called by `extrude` when `combine=cut` is used. A corresponding test is also added. However, there is a subtle numerical issue (...
diff --git a/cadquery/cq.py b/cadquery/cq.py index 868b56fc1..bae92f424 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -3016,7 +3016,7 @@ def extrude( # If subtractive mode is requested, use cutBlind if combine in ("cut", "s"): - return self.cutBlind(until, clean, taper) + ...
3
2
1
[{"id": "G0", "claim": "The test coverage of the pull request's diff should be increased (the new code paths, notably the cutBlind deprecation warning, were untested).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The deprecation warning should include...
null
CadQuery__cadquery__128
CadQuery/cadquery
128
defect
0e6b8837a7e7268b7335d231b76f2c41f120fcd1
768b33cef6283de84e3a280bf24df3f927e3369c
Better makeFromWires and related changes
This PR will resolve #21, #124 and #107 Example of text alignment: ![image](https://user-images.githubusercontent.com/13981538/57980317-49fc5700-7a2a-11e9-83e8-832962d0cb83.png)
diff --git a/cadquery.egg-info/PKG-INFO b/cadquery.egg-info/PKG-INFO index 823c3bd30..d7ac89acd 100644 --- a/cadquery.egg-info/PKG-INFO +++ b/cadquery.egg-info/PKG-INFO @@ -1,141 +1,23 @@ Metadata-Version: 1.1 Name: cadquery -Version: 1.0.0 +Version: 0.5-SNAPSHOT Summary: CadQuery is a parametric scripting language...
3
2
0
[{"id": "G0", "claim": "The `sweepAlongWires` parameter name is very confusing and the `sweep` interface should use a `multisection` keyword instead of it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added comment `# make a Face, NB: this ...
null
CadQuery__cadquery__1327
CadQuery/cadquery
1,327
defect
33bf83e5bb8efb6c63cd9835bfc8c0f5b11cbae3
e3364e0f6318e2ec93e312c0ecce2d848930b6c5
Added metadata handling to Assembly.add method
I am using the `metadata` Dictionary to create [exploded assembly views](https://codeberg.org/7BIndustries/poc-stereoscope/src/branch/main/stereoscope.py#L177) by including a relative translation with each assembly component. The metadata works fine when adding Workplanes, but when sub-assemblies are added the metadata...
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index b3c6d5098..aebd2406f 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -197,6 +197,28 @@ def add( """ ... + @overload + def add( + self, + obj: AssemblyObjects, + loc: Optional[Location] = None, +...
1
1
0
[{"id": "G0", "claim": "The pull request should update the existing overload of Assembly.add to carry the new metadata parameter instead of adding an additional overload.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CadQuery__cadquery__1350
CadQuery/cadquery
1,350
defect
7143eadb8e69bd9c3cecdf28b3cb77e7eaf974c0
08852eb4c9b519eed4a188da4610c4e9f9a316cb
Svg update
PRs #1277 and #1325 are both open with SVG export changes, but neither one fixed this issue for me. There was an extra bottom-right margin that I could not remove in the resulting SVG, and I wanted my SVGs to fill the image edge to edge for my use case while still respecting the top/left margins. These changes accompli...
diff --git a/cadquery/occ_impl/exporters/svg.py b/cadquery/occ_impl/exporters/svg.py index d2b9c421c..ad11815da 100644 --- a/cadquery/occ_impl/exporters/svg.py +++ b/cadquery/occ_impl/exporters/svg.py @@ -180,6 +180,7 @@ def getSVG(shape, opts=None): hiddenColor = tuple(d["hiddenColor"]) showHidden = bool(d["...
3
2
2
[{"id": "G0", "claim": "The fitView sizing should let the user explicitly choose which of width or height is fixed and which is recomputed (e.g. by passing a sentinel for the dimension to fit), instead of the code silently deciding which dimension changes.", "category": "design", "verdict": "supported", "priority": "P1...
null
CadQuery__cadquery__1376
CadQuery/cadquery
1,376
defect
e8d74474ca4869d014cba6e1f835cdabad86bf88
0c2217ce1143948a345da5ca451fc2b31b0e46b2
Shape iterator improvements
Closes #1231 and #565 - [x] adds an `__iter__` method to Shape (specialized for Wire) - [x] ancestors iterator - [x] siblings iterator - [x] ancestors/siblings for workplane - [x] tests - [x] docs
diff --git a/cadquery/cq.py b/cadquery/cq.py index 3a762a0a7..e1b8fde5c 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -47,6 +47,7 @@ Solid, Compound, wiresToFaces, + Shapes, ) from .occ_impl.exporters.svg import getSVG, exportSVG @@ -238,15 +239,13 @@ def _collectProperty(self, propName: str...
6
4
0
[{"id": "G0", "claim": "The `kind` parameter of `siblings` should be eliminated or made optional, with the kind automatically inferred from the object type (Shell->Face, Face->Edge, Edge->Vertex), because any other kind silently returns empty results.", "category": "design", "verdict": "opposed", "priority": "P1", "sco...
null
CadQuery__cadquery__138
CadQuery/cadquery
138
defect
10118e563add4e60f21c882ff2a842757ceaacad
5487832722641e6c107089736b0ab91d998a47f4
Implemented isInside() method
I need the functionality to determine whether or not an arbitrary point is inside or outside of a solid. This pull request implements the `isInside()` method for Solid and Compound shapes by exposing `BRepClass3d_SolidClassifier` functionality for determining whether or not an arbitrary point is inside or outside of a ...
diff --git a/cadquery/cq.py b/cadquery/cq.py index ea1dec036..8a163e48f 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -2890,3 +2890,16 @@ def _repr_html_(self): else: return Compound.makeCompound(self.objects)._repr_html_() + def isInside(self, point, tolerance=1.0e-6): + """ + ...
3
3
3
[{"id": "G0", "claim": "The isInside() implementation fits better as a regular method in the Mixin3d class than as a static method on Shape.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Workplane.isInside may not be needed in the fluent API; the review...
null
CadQuery__cadquery__1418
CadQuery/cadquery
1,418
defect
f467ac95051a112eee3f3767532d9eb58d80e9d7
f17d0c2aa5c69f1f0674c65184bac827950cf908
Added argument handling for ASCII export of assemblies to GLTF and STL
The `binary` option for `occ_impl.exporters.assembly.exportGLTF()` was not getting passed through from the `assembly.save()` call. This PR fixes that and also adds the `ascii` option for STL export as well.
diff --git a/.gitignore b/.gitignore index 2d00ebc95..3e41b8e65 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,9 @@ nested.wrl nested.xml nested.zip nested.stl +nested_ascii.bin +nested_ascii.gltf +nested_ascii.stl out1.3mf out2.3mf out3.3mf diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 27...
3
3
2
[{"id": "G0", "claim": "Do not add both `binary` and `ascii` keyword arguments; glTF export should instead handle the format automatically based on the file extension (.gltf exports JSON, .glb exports binary).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
CadQuery__cadquery__16
CadQuery/cadquery
16
defect
e8f531b51b807028f728c15324cffe6d4fd98758
f8d38caa9071c23ae881a7c1800165cd8d544c3d
implement Matrix.__getitem__() and Matrix(list) constructor
* Implement `Matrix.__getitem__()`, so individual values can be accessed with `matrix[row, column]` syntax. This is useful generally and is required for some cqparts testing of coordinate transforms. * Matrix constructor accepts a list of values as input. The input can be all 16 values of the matrix or just the first ...
diff --git a/cadquery/occ_impl/geom.py b/cadquery/occ_impl/geom.py index 47af6eec5..f53ad0da4 100644 --- a/cadquery/occ_impl/geom.py +++ b/cadquery/occ_impl/geom.py @@ -167,8 +167,23 @@ def __init__(self, matrix=None): if matrix is None: self.wrapped = gp_Trsf() - else: + elif isin...
2
1
0
[{"id": "G0", "claim": "The reviewer asks to leave out the check that the last 4 values of a 16-element list must be [0,0,0,1], arguing that assumption is not always true and validity is arguably the caller's scope.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
CadQuery__cadquery__1672
CadQuery/cadquery
1,672
defect
5429f618c6723b47f07ba5394a912e22b0dd5cff
06aa44fcda91a983c08c9f7a44d5ceb3a7b8ed82
cq.Shape and some free-func improvements
- [x] `paramAt` for position [consistency] - [x] `isSolid` fix [bugfix] - [x] `solid` improvements [free-func] - [x] `check` [free-func] - [x] `innerShells` [consistency] - [x] `outerShell` [consistency] - [x] tests
diff --git a/appveyor.yml b/appveyor.yml index c1f71ee3d..171ed7316 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,14 +16,14 @@ environment: secure: $(anaconda_token) init: - - cmd: curl -fsSLo Miniforge.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64....
1
1
0
[{"id": "G0", "claim": "The added docstring line ':param wire: The input wire to fillet. Currently only open wires are supported' on cadquery/occ_impl/shapes.py line 2560 was removed in #1630 and was probably inadvertently added back, so it should be removed.", "category": "documentation", "verdict": "supported", "prio...
null
CadQuery__cadquery__1690
CadQuery/cadquery
1,690
defect
dfba42f94a045c05fee3a2c62d44b07eb03b58cc
d7b054d5edcb3888b7fa37ac78dd17c028cbd8fa
fix: Deduplicate objects with same color on step export
Resolves #1689.
diff --git a/cadquery/occ_impl/assembly.py b/cadquery/occ_impl/assembly.py index 369d4513b..b77f7be4a 100644 --- a/cadquery/occ_impl/assembly.py +++ b/cadquery/occ_impl/assembly.py @@ -100,6 +100,14 @@ def __init__(self, *args, **kwargs): else: raise ValueError(f"Unsupported arguments: {args}, {kw...
2
2
0
[{"id": "G0", "claim": "The solution should instead define `__eq__` and `__hash__` on `cq.Color` rather than converting colors to tuples in `_toCAF`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unused-variable line in `get_doc_nodes` was commented...
null
CadQuery__cadquery__1692
CadQuery/cadquery
1,692
defect
dfba42f94a045c05fee3a2c62d44b07eb03b58cc
4af1dd18f755bec8017001865cb55051a5dd377f
More shape/free func improvements
- [x] normalAt for surfaces - [x] bad fonts workaround (fuse) - [x] loft to/from vertex - [x] edge/face trim - [x] more loft options - [x] parametrization - [x] continuity - [x] shell construction fix - [x] aux spine for sweep - [x] params for spline - [x] cq.vis.show extensions - [x] tests ___ `c...
diff --git a/cadquery/cq.py b/cadquery/cq.py index 0334aade1..0564136b2 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -42,6 +42,7 @@ from .occ_impl.geom import Vector, Plane, Location from .occ_impl.shapes import ( Shape, + Vertex, Edge, Wire, Face, @@ -49,6 +50,7 @@ Compound, w...
5
4
0
[{"id": "G0", "claim": "The docstring line ':param wire: The input wire to fillet. Currently only open wires are supported' was inadvertently re-added after having been removed in #1630 and should be removed again.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
CadQuery__cadquery__1700
CadQuery/cadquery
1,700
defect
a175cb8ea334bd5ffc53ee7eab00484ba954a7b2
2f24f914fd5fad2408245c926cb9308690820632
Text fixes and some shape/free func additions
- [x] single letter fix - [x] 2D text on path - [x] text on path - [x] text on path/face - [x] bin brep import/export - [x] solid constructors tweaks - [x] symmetric offset - [x] "infinite" plane - [x] triangulation edge visualization fixes #108, #109, #1581 ![afbeelding](https://github.com/user-attachmen...
diff --git a/cadquery/occ_impl/exporters/__init__.py b/cadquery/occ_impl/exporters/__init__.py index 985bba629..3f9686630 100644 --- a/cadquery/occ_impl/exporters/__init__.py +++ b/cadquery/occ_impl/exporters/__init__.py @@ -14,7 +14,7 @@ from .json import JsonMesh from .amf import AmfWriter from .threemf import Thr...
7
6
0
[{"id": "G0", "claim": "Remove the redundant '# DxfDocument is needed' comment from the DxfDocument import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exportBin docstring should read 'Export this shape to a binary BREP file.' with a trai...
null
CadQuery__cadquery__1731
CadQuery/cadquery
1,731
defect
6b3b14a03894dbabf4ec250a07d6f6a7c6cac95c
e6db2330bb735ac7d74cda7d4f20d90fef2f3eb0
Final shape / free func tweaks
- [x] `sample` - [x] `isoline` - [x] detailed `check` output - [x] expose API in `func`: `from cadquery.func import *` - [x] tests ![afbeelding](https://github.com/user-attachments/assets/392dc07f-420f-47ff-97ea-4b5d237f0d5b) ![afbeelding](https://github.com/user-attachments/assets/c0c0f048-ef36-4ba3-bdf8-12a8a...
diff --git a/cadquery/func.py b/cadquery/func.py new file mode 100644 index 000000000..cb7050983 --- /dev/null +++ b/cadquery/func.py @@ -0,0 +1,47 @@ +from .occ_impl.geom import Vector, Plane, Location +from .occ_impl.shapes import ( + Shape, + Vertex, + Edge, + Wire, + Face, + Shell, + Solid, + ...
5
4
1
[{"id": "G0", "claim": "sample() returns one fewer point on a closed edge than Sketch.distribute does for the same count, a closed/open handling difference the reviewer points out to confirm the design.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
CadQuery__cadquery__1752
CadQuery/cadquery
1,752
defect
f13f60735ff0593524097eb6ed47f97ef1ee722a
58e83c404f408b253b3db71582c7147d7071d560
Additions to cq.Face
Low-level stuff useful for building new functionality. - [x] `Face.paramAt` - [x] `Face.params` - [x] `Face.positionAt` - [x] `Face.positions` - [x] `cq.func.closest` - [x] tests
diff --git a/cadquery/func.py b/cadquery/func.py index cb7050983..4403d12ad 100644 --- a/cadquery/func.py +++ b/cadquery/func.py @@ -44,4 +44,5 @@ sweep, loft, check, + closest, ) diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index 307036cf7..576925df5 100644 --- a/cadquery/o...
2
2
1
[{"id": "G0", "claim": "The paramAt docstring typo should read 'closest to a given vector' instead of 'a give vector'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The positions docstring should say it returns a list of vectors and document the ...
null
CadQuery__cadquery__1759
CadQuery/cadquery
1,759
defect
f13f60735ff0593524097eb6ed47f97ef1ee722a
4469630bfa05e07aac02f531c1915f7d094099a6
Implement screenshots in show
I had to implement something quickly for my slides, I think it'll be quite useful for others. - [x] png screenshot - [x] tune camera position, zoom, bg, wxh, ... - [x] tender off-screen when non-interactive - [x] test ![img](https://github.com/user-attachments/assets/ece01a15-b369-4faf-868e-b2914469efc6) No...
diff --git a/cadquery/vis.py b/cadquery/vis.py index 7a574cd4b..522dfae13 100644 --- a/cadquery/vis.py +++ b/cadquery/vis.py @@ -1,7 +1,7 @@ from . import Shape, Workplane, Assembly, Sketch, Compound, Color, Vector, Location from .occ_impl.assembly import _loc2vtk, toVTK -from typing import Union, Any, List, Tuple,...
3
3
2
[{"id": "G0", "claim": "The screenshot PNG may show a different view than what is displayed in the interactive window, possibly due to a timing issue.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "show() should let the caller control the window pos...
null
CadQuery__cadquery__1781
CadQuery/cadquery
1,781
defect
2698db5c395705eb36e42bb5d4ab5944daf24436
de5b6b54a91c39fc1b690c29c38f864f540b545d
Add imprinting to free func
- [x] `imprint` - [x] `Edge.params` - [x] `Edge.tangents` - [x] improve `cut` and `fuse` - [x] multi-argument `fuse` - [x] `setThreads` - [x] tests Some infor on the glue option: https://dev.opencascade.org/content/gluing-options-boolean-component
diff --git a/cadquery/func.py b/cadquery/func.py index 4403d12ad..0ac4e26bf 100644 --- a/cadquery/func.py +++ b/cadquery/func.py @@ -32,6 +32,7 @@ fuse, cut, intersect, + imprint, split, fill, clean, @@ -45,4 +46,5 @@ loft, check, closest, + setThreads, ) diff --git a...
7
6
2
[{"id": "G0", "claim": "The `params` docstring should follow the codebase convention of placing `:return:` after the `:param` entries instead of using `:returns:`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Enabling multithreading by default (...
null
CadQuery__cadquery__1782
CadQuery/cadquery
1,782
defect
471ab6fcc79b6ce64b857d33d06202c030cf5459
fe0d87f33459cc909e5e39ee168ef4067df0b56e
STEP Export with Face Metadata (Names and Colors)
Export of a non-nested assembly works in the initial commit. Faces can be specified to have names, colors and layers (names via layers) associated with them. Still needed: * [x] Recursive refactor to handle nested assemblies * [x] Add support for `write_pcurves` * [x] Add support for `precision_mode`
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 5f32f19a2..10110f95a 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -94,6 +94,11 @@ class Assembly(object): objects: Dict[str, "Assembly"] constraints: List[Constraint] + # Allows metadata to be stored for exports + subsha...
8
8
2
[{"id": "G0", "claim": "The metadata handling should be restructured so subshape names, colors and layers live on cq.Assembly behind an addSubshape API rather than inside the exporter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _process_child the ...
null
CadQuery__cadquery__1797
CadQuery/cadquery
1,797
defect
76ed228537f2583ada3b2215ef033abe3a3cd535
74e9b480f11a1bd833968e103d72ed45d55dd555
Add extend, speed up distance and improve imprint
- [x] Faster `distance` and `closest` - [x] `Face.extend` - [x] More robust `imprint` tracking of shapes - [x] `Shape.replace` - can e.g. replace a face with another one - [x] `Shape.remove` - remove a subshape - [x] `Solid.addCavity` - add a cavity to a solid without boolean op (no interference checks are done). ...
diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index b39efc042..45b4690a7 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -15,6 +15,8 @@ Protocol, ) +from typing_extensions import Self + from io import BytesIO from vtkmodules.vtkCommonDataModel import vt...
4
2
0
[{"id": "G0", "claim": "The last :param line of the Face.extend docstring documents umax a second time where it should document vmax.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Multi-threading in closest should be an option rather than always ...
null
CadQuery__cadquery__1855
CadQuery/cadquery
1,855
defect
f07e7e0428d07140f3d9fea1c1c51c745f08f2db
58e52a1f0abc55b22577ae426eae90aa45b0f16f
feat: Enhance vis.py show routine
- Add parameters azimuth viewup and clipping_range to allow for improved control of the rendering. - Always call ResetCamera early so the camera is in a known state before applying user defined parameters, some of which are relative.
diff --git a/cadquery/vis.py b/cadquery/vis.py index 5fbedb12f..5966b06d2 100644 --- a/cadquery/vis.py +++ b/cadquery/vis.py @@ -391,8 +391,11 @@ def show( zoom: float = 1.0, roll: float = -35, elevation: float = -45, + azimuth: float = 0, position: Optional[Tuple[float, float, float]] = None, ...
1
1
1
[{"id": "G0", "claim": "renderer.ResetCamera() is called too early in show(), so the viewer comes up with an empty display until the user interacts with the window, unlike master.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
CadQuery__cadquery__1923
CadQuery/cadquery
1,923
defect
505a18de549a977c612b78ba87947e230982ff2e
89dcce5b0fc79a208cd3386e6cbc2b3f53b87f22
Add Basic Materials Functionality
This is a smaller PR which wraps ~~Graphic3d_MaterialAspect~~ `XCAFDoc_Material` and `XCAFDoc_VisMaterial` from OCC and leaves open the possibility of adding in ~~physical~~ visualization properties later.
diff --git a/cadquery/__init__.py b/cadquery/__init__.py index 38b06cbee..7f4a13623 100644 --- a/cadquery/__init__.py +++ b/cadquery/__init__.py @@ -37,7 +37,7 @@ ) from .sketch import Sketch from .cq import CQ, Workplane -from .assembly import Assembly, Color, Constraint +from .assembly import Assembly, Color, Cons...
1
1
0
[{"id": "G0", "claim": "The Material class should wrap XCAFDoc_Material (and XCAFDoc_VisMaterial) instead of Graphic3d_MaterialAspect, prioritizing physical properties over visualization.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CadQuery__cadquery__1943
CadQuery/cadquery
1,943
defect
fe53ca0c18bf6d4e2e2f0e1cc8720d18fb5158c1
d98b75af185f6112ca53f0f0a65fad2c33544665
Add GUI elements to fig.Figure
This PR adds a toolbar and minimal objects list to `fig.Figure`: <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/dfff8d6c-2860-401d-b37b-47d4e57784ed" /> <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/61076ee3-523c-4497-9d05-e3...
diff --git a/cadquery/fig.py b/cadquery/fig.py index 2eb68e930..8feff024e 100644 --- a/cadquery/fig.py +++ b/cadquery/fig.py @@ -9,12 +9,12 @@ from threading import Thread from itertools import chain from webbrowser import open_new_tab +from uuid import uuid1 from trame.app import get_server from trame.app.core ...
3
3
2
[{"id": "G0", "claim": "Both new trame packages exist with the same name on PyPI, and without them the feature/tests will not work when CadQuery is installed via pip.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fill/no-fill visibility control...
null
CadQuery__cadquery__1969
CadQuery/cadquery
1,969
defect
f3c5536fe252a0a24ef7ff0b4497e758af3747a6
5f4c5e3dcedad00384a3de76d3c7825c324acc6a
Multimethod changes and type checking
Quite some scope creep, but IMO this is very important - [x] Enable type checking of mutlimethod and multidispatch - [x] Fix detected mypy issues (hence some changes in Sketch and Workplane) - [x] Rework geom to use multidispatch - [x] Rework shapes to partially use multidispatch. NB: the goal is to use it everyw...
diff --git a/cadquery/cq.py b/cadquery/cq.py index 139892eb9..6fa8bbe76 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -3716,7 +3716,7 @@ def _getFaces(self) -> List[Face]: for el in self.objects: if isinstance(el, Sketch): - rv.extend(el) + rv.extend(f for f i...
7
4
0
[{"id": "G0", "claim": "The comments in _get_wire_lists_strict and _get_face_lists_strict say \"if not faces\" where it should read \"if no faces\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out cqmultimethod block in cadquery/u...
null
CadQuery__cadquery__2007
CadQuery/cadquery
2,007
defect
ba711079bdf64a82ec348960e2da5b8ddac68b67
3af133cd1666889eb01df55c1c187bca1f0d5923
QoL improvments for shapes
- [x] free func spline fix (#1997) - [x] add special methods to Shape (#1970) - [x] add selectors enforcing single item - [x] typing changes to reduce number of casts when using CQ+mypy - [x] free functions for fig - [x] move to shape (#1809) - [x] Add free funcs from the nurbs branch (added project overload and ...
diff --git a/cadquery/cq.py b/cadquery/cq.py index 8d3cdf89b..81440c9e8 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -1212,7 +1212,7 @@ def shell( faces = [f for f in self.objects if isinstance(f, Face)] - s = solidRef.shell(faces, thickness, kind=kind) + s = solidRef.hollow(faces, thi...
2
2
1
[{"id": "G0", "claim": "The locationAt docstring misspells \"location\" as \"loation\" and should read \"Computes the location at the desired location in the u,v parameter space.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the added fr...
null
CadQuery__cadquery__2019
CadQuery/cadquery
2,019
defect
82901283537089d002e5c1d2f3036ca85fa277d1
ca16bfb58af00d53b19c53924b7931db6dc11f31
Nurbs extensions
Quite some improvements for the NURBS module. - [x] direct visualization of `Surface`, `Curve` and their control points vis `fig.show` and `show` - [x] isoline construction - [x] isoline extraction matrix construction - [x] fixed off by one evaluation error for periodic curves and surfaces - [x] `constrainedAppr...
diff --git a/cadquery/fig.py b/cadquery/fig.py index 7a1037851..d5b67f9b5 100644 --- a/cadquery/fig.py +++ b/cadquery/fig.py @@ -472,6 +472,12 @@ def onVisibility(self, event: dict): for act in actors: act.SetVisibility(event["visible"]) + # synchronize state by hand + for act in s...
5
3
1
[{"id": "G0", "claim": "When periodicApproximate is run with the smoothing penalty (lam=1e-5, penalty=3), the radius of the fitted curve comes out smaller than the sample points.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "In _split_showables the...
null
CadQuery__cadquery__237
CadQuery/cadquery
237
defect
acf363d721377eb22cd39f16ce5718b9ff68f282
d9893eb7f7d08ac1c81dbf1d618aed7db420d3c1
Update assembledEdges in shapes.py
```BRepBuilderAPI_MakeWire::Add(const TopTools_ListOfShape & L)``` offers the option to accept a list of shapes directly as argument: ```Adds the edges of <L> to the current wire. The edges are not to be consecutive. But they are to be all connected geometrically or topologically. If some of them are not connected the...
diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index 4adcacf48..946c8843a 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -112,6 +112,7 @@ from math import pi, sqrt from functools import reduce +import warnings TOLERANCE = 1e-6 DEG2RAD = 2 * pi / 360. @@ -80...
6
5
2
[{"id": "G0", "claim": "It would be nice for users to get some indication, such as a printed warning, when the wire status is DisconnectedWire so they know to check their points, though jmwright notes it need not happen in this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
CadQuery__cadquery__243
CadQuery/cadquery
243
defect
e29920047972417a1d4e6b8513017c6d6bf4ee95
e7608e1fd9854de309f5843440f7b8095aec3764
Fix plane rotation method (again...)
So, it seems the test I implemented in #235 was not very complete. Out of laziness, I only used "random" planes with the normal in the X, Y or Z directions. Therefore, the implementation was broken. :sweat: Hopefully, these tests are now more complete and exhaustive. About the implementation... I wanted to open ...
diff --git a/cadquery/occ_impl/geom.py b/cadquery/occ_impl/geom.py index d959702aa..a83698ed5 100644 --- a/cadquery/occ_impl/geom.py +++ b/cadquery/occ_impl/geom.py @@ -240,19 +240,31 @@ def __init__(self, matrix=None): raise TypeError( "Invalid param to matrix constructor: {}".format(...
4
4
1
[{"id": "G0", "claim": "NumPy is not a dependency of CadQuery, so the pull request should not add it via setup.py's install_requires (or change dependency tracking there at all) and the tests should use the existing Vector.cross instead of importing numpy.cross.", "category": "design", "verdict": "supported", "priority...
null
CadQuery__cadquery__253
CadQuery/cadquery
253
defect
3cd466a693ce1d7f084e5cd6ddee256fc28d020a
9980ecdd7c6f97b15412295516555872e2661bc9
Implementation of BRepOffsetAPI_MakeFilling
This is an implementation of the OCC function ```BRepOffsetAPI_MakeFilling``` into CadQuery in order to produce a plate surface with a thickness (optional), enclosed by edge points, polylines or splines, and going through interpolation points (optional) .
diff --git a/cadquery/cq.py b/cadquery/cq.py index 23bb30e47..fc1509fbc 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -2728,6 +2728,66 @@ def _sweep(self, path, multisection=False, makeSolid=True, isFrenet=False, return Compound.makeCompound(toFuse) + def interpPlate(self, surf_edges, surf_pts=[],...
7
6
3
[{"id": "G0", "claim": "The test asserts the plate's area/volume to 9 decimal places, which is beyond the accuracy OCC can reach and fails on the Windows/macOS CI.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pre-existing Area method returns a mas...
null
CadQuery__cadquery__375
CadQuery/cadquery
375
defect
96a04068eaf2f7e025d95d47ef4b98fa13890772
7f333cd81a9f3d8fd096669a7e6b2585aef7f902
Implement glue option and fuzzy tolerance in union
Will resolve #374 . It will also enable advanced users to apply the fuzzy bool ops (see #184 ).
diff --git a/cadquery/cq.py b/cadquery/cq.py index 9e97eff64..535ff4cb1 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -2715,7 +2715,7 @@ def combine(self, clean=True): return self.newObject([s]) - def union(self, toUnion=None, clean=True): + def union(self, toUnion=None, clean=True, glue=False,...
2
2
1
[{"id": "G0", "claim": "Bragostin's Ex101-derived example of unioning interpPlates crashes with standard union and with gluing without tolerance and only works with gluing plus fuzzy tolerance set to 0.01, so union needs the tol option to handle this case.", "category": "correctness", "verdict": "supported", "priority"...
null
CadQuery__cadquery__415
CadQuery/cadquery
415
defect
ac1c8de6da7fc19f98acfff04ba7be1aeaa694e0
62746e348438957e98c66ca857f97a87689416e6
DXF export (2D) and exporters cleanup
Will resolve #352 , #340, #212, #334 and #360 . This adds dxf export. Moreover I implemented a new export function and marked exportShape as deprecated: ```python def export( w: Union[Shape, Workplane], fname: str, exportType: Optional[ExportLiterals] = None, tolerance: float = 0.1, ): ... ``...
diff --git a/cadquery/__init__.py b/cadquery/__init__.py index 84096cf3b..28810cbc3 100644 --- a/cadquery/__init__.py +++ b/cadquery/__init__.py @@ -27,7 +27,8 @@ StringSyntaxSelector, Selector, ) -from .cq import CQ, Workplane, selectors +from .cq import CQ, Workplane +from . import selectors from . import...
1
1
0
[{"id": "G0", "claim": "Renaming the documented export API from exporters.exportShape to exporters.export is expected to break some existing user scripts that call exportShape directly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CadQuery__cadquery__475
CadQuery/cadquery
475
defect
7fd45e00ce7cfa5e40e7f2397bc4fd90cb680e01
826753a9ccd6bda6770ce78dd964709c11f5c9b7
Implement locations() for Wires
Implements `locations()` and `locationAt()` for both Wires and Edges.
diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index 67d3f8687..7a476bbca 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -34,9 +34,16 @@ gp_Elips, ) -# collection of pints (used for spline construction) +# collection of points (used for spline construction)...
6
4
0
[{"id": "G0", "claim": "The orientation returned by locations() on a wire is not consistent around the wire but appears to be computed per edge, which makes the feature harder to use.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer request...
null
CadQuery__cadquery__527
CadQuery/cadquery
527
defect
cf275b0ec05ded405e38936836f1aa241eef6e72
fb3ab34bab7150d041125b29348bb9be38e0663f
Add mirror from face features (with example now fixed)
I noticed and fixed an error in the example documentation (although this does not seem to be the cause of the failing CI from the last request) Old pull request message: Hi, Apologies if I have not some something correctly, this is my first pull request so still working out how to do things. I added this feat...
diff --git a/cadquery/cq.py b/cadquery/cq.py index d93afe022..8f1b63aba 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -1027,17 +1027,62 @@ def rotate( ] ) - def mirror(self, mirrorPlane="XY", basePointVector=(0, 0, 0)): + def mirror( + self, + mirrorPlane: Union[ + ...
3
3
2
[{"id": "G0", "claim": "The mirror method's type handling should use isinstance checks for all if/else branches, because part of the type handling logic does not add up.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test_mirror_equivalence docs...
null
CadQuery__cadquery__549
CadQuery/cadquery
549
defect
a576f1d404fd39481cf8990d64ea7cce1447a3ff
2d3fc607e63c0cb3e386349600f872f40ab8057d
Refactor selectors and add CenterNthSelector
This PR will close #517 and add a CenterNthSelector to resolve #530. I touched a few other things as well, sorry for lumping them all in one PR but I've at least rebased all the commits into neat chunks. --- Commit 6d2f3ba adds _NthSelector. It is an abstract class, it should only be inherited from, not instantia...
diff --git a/cadquery/selectors.py b/cadquery/selectors.py index 761abbf84..4149349dd 100644 --- a/cadquery/selectors.py +++ b/cadquery/selectors.py @@ -19,8 +19,7 @@ import math from .occ_impl.geom import Vector -from .occ_impl.shapes import Edge, Face -from collections import defaultdict +from .occ_impl.shapes im...
6
5
0
[{"id": "G0", "claim": "An Edge cannot have geomType() == \"PLANE\", so the PLANE check on the Edge branch of ParallelDirSelector looks like a typo the author asked adam-urbanczyk to confirm.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The PR's...
null
CadQuery__cadquery__596
CadQuery/cadquery
596
defect
53a76d4f288c4babd416dfb3b2c3e7b9153f754f
a4576403dd58b40382f6a8d823cc0f776eb13fcf
Expose SVG Export Options and Add Some Useful Extras
I'm still working on this, but wanted to get it out in the open to get feedback. Exposed the `getSVG()` 'opt' parameter so that things like height, width and margins could be controlled. Also added a projection direction opt to control the projection view of the shape. The following code currently works with this fo...
diff --git a/cadquery/occ_impl/exporters/__init__.py b/cadquery/occ_impl/exporters/__init__.py index a3e58d13a..6ea9e6dcc 100644 --- a/cadquery/occ_impl/exporters/__init__.py +++ b/cadquery/occ_impl/exporters/__init__.py @@ -37,6 +37,7 @@ def export( exportType: Optional[ExportLiterals] = None, tolerance: flo...
4
2
0
[{"id": "G0", "claim": "The getSVG opts (especially projectionDir) need documentation, e.g. a docstring reference that says what a projectionDir such as (-1, 1, 1) looks like and which way it points.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
CadQuery__cadquery__617
CadQuery/cadquery
617
defect
184a985066284c3895dc58499c0b6bcafaaaa15f
d37d79b6b58f1f3cf3f99b15448151a37842e7d5
Centered option
Will resolve #567. Also fixes some errors in the HTML docs for box and wedge.
diff --git a/cadquery/cq.py b/cadquery/cq.py index 6f6774ed3..71bdd884b 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -1320,7 +1320,7 @@ def rarray( ySpacing: float, xCount: int, yCount: int, - center: bool = True, + center: Union[bool, Tuple[bool, bool]] = True, ) ->...
4
4
0
[{"id": "G0", "claim": "The new rect docstring text for the centered parameter (\"should the center or the lower bound be on the reference point? A single bool can also be given, eg. True is equivalent to (True, True).\") is confusing and should be rewritten, ideally with wording reused consistently across all the cent...
null
CadQuery__cadquery__677
CadQuery/cadquery
677
defect
0325474f7270bd71820f0b88513eadf6380253e1
1d1cff4f9a1ea4b392792a091d5d962b59d2f114
Improve Inheriting Workplane Fluent Methods
* Updated `Workplane.workplane()`, `Workplane.copyWorkplane()`, `Workplane.newObject()` to return instances of a type that's based on the input parameters (such as `self`). * Updated type hints to reflect that return types of fluent methods depend on the type of method arguments. * Added a unit test to verify fluent ...
diff --git a/cadquery/cq.py b/cadquery/cq.py index e7c44e192..aabd0e140 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -23,6 +23,7 @@ from typing import ( overload, Sequence, + TypeVar, Union, Tuple, Optional, @@ -61,6 +62,15 @@ CQObject = Union[Vector, Location, Shape] VectorLike = ...
2
1
0
[{"id": "G0", "claim": "The AppVeyor Python 3.6 job fails the pre-existing testOffset2D (1 != 4 solids) while it passes in every other CI environment, so the failure should be re-run and explained before merge.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1",...
null
CadQuery__cadquery__712
CadQuery/cadquery
712
defect
39e60f6e481092c5d5542f370d01c17502efb4a7
bd2d2d02095b5e7a4a78d313218b914357dca49c
InPlane constraint
I've added a constraint that positions a point within a 2D plane. Proper docs are coming in a later PR, but I want to update SphinxCadquery to handle assemblies first.
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index cfe3537c8..3689a6273 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -5,7 +5,7 @@ from .cq import Workplane from .occ_impl.shapes import Shape, Face, Edge -from .occ_impl.geom import Location, Vector +from .occ_impl.geom import Location,...
7
5
0
[{"id": "G0", "claim": "The tests only cover the case where the plane is locked and the point is free, and the opposite configuration should be tested too.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constraint requires the first object to be a p...
null
CadQuery__cadquery__726
CadQuery/cadquery
726
defect
b0a8cb247b3bf09b5c49191e8b1eb584f223bfe1
018ad068307e903321cecf79163fed68817aa681
Assembly toCompound
Will resolve #724 (since you can now do `assy.toCompound().BoundingBox()`), and I think it's the best way to resolve #629.
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 60c2d42b6..5d75f7985 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -4,7 +4,7 @@ from uuid import uuid1 as uuid from .cq import Workplane -from .occ_impl.shapes import Shape, Face, Edge, Wire +from .occ_impl.shapes import Shape, Compoun...
1
1
0
[{"id": "G0", "claim": "Fix the spelling typo in the test comment: 'ontop of each other' should read 'on top of each other'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
CadQuery__cadquery__77
CadQuery/cadquery
77
defect
568ee63e1a6850f5c63494f0c272c67d2ccd5792
b4e4c4dbeb6ceccc4df67967c4e535899844b085
jupyter nb - uuid1 to uuid4
fix for: #76 "a 1 character bugfix... I'LL TAKE IT!"
diff --git a/cadquery/occ_impl/jupyter_tools.py b/cadquery/occ_impl/jupyter_tools.py index d7ef310b7..a0dd21e54 100644 --- a/cadquery/occ_impl/jupyter_tools.py +++ b/cadquery/occ_impl/jupyter_tools.py @@ -47,7 +47,7 @@ def add_x3d_boilerplate(src, height=400, center=(0,0,0), d=(0,0,15), fov=FOV, rot='{} {} {} {} '.for...
1
1
1
[{"id": "G0", "claim": "The call site was changed to uuid4() but the uuid4 name was never imported, so add_x3d_boilerplate raises NameError on render.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
CadQuery__cadquery__797
CadQuery/cadquery
797
defect
267d22593f36f923d7718e34a45c55d852111bda
cb1dfcc24ad9cb26ecf75091205b29d4b899a7e2
Handle constraints from infinite faces
Will close #758, where I wanted to specify a plane for a constraint (defined by an origin and a normal), so the obvious Shape to use was from `Face.makePlane(width=None, length=None)`, but this shape has a center at 1e99. To handle it I had to use `gp_Pln` a lot because it turns out two offset infinite faces will st...
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 7ffb7b1d0..8a98a9bae 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -15,6 +15,7 @@ from .occ_impl.exporters.assembly import exportAssembly, exportCAF from .selectors import _expression_grammar as _selector_grammar +from OCP.gp import gp...
3
3
1
[{"id": "G0", "claim": "The infinite-face detection in _getPnt should use BRepTools.UVBounds_s compared with Precision.IsInfinite_s instead of comparing the center length against 1e98.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For a trimmed Face the...
null
CadQuery__cadquery__806
CadQuery/cadquery
806
defect
4c5816dd703afee9cd45283470675fbcee29f684
460e5204672fff9f833100b1ddc90b5ea30c06ae
Assy solver fix
Will resolve #767, #790, #809
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index 7ffb7b1d0..f39ed7a67 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -163,6 +163,8 @@ class Assembly(object): objects: Dict[str, "Assembly"] constraints: List[Constraint] + _solve_result: Optional[Dict[str, Any]] + def __...
3
1
0
[{"id": "G0", "claim": "The final return in ConstraintSolver.solve could be written as a named list assigned to `locs` followed by `return locs, result`, a neater style that still passes black.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
CadQuery__cadquery__829
CadQuery/cadquery
829
defect
ab876acc84a7df273bb368549656912a980feae3
7f499b19acea53b8b5f0789e6a0d800abaddc11b
Mixin3D.shell: removed deprecated OCCT method
Will close #649. I also shortened the code a bit, there was a few duplicated calls.
diff --git a/cadquery/occ_impl/shapes.py b/cadquery/occ_impl/shapes.py index fe619ecb4..a5dd9234d 100644 --- a/cadquery/occ_impl/shapes.py +++ b/cadquery/occ_impl/shapes.py @@ -2357,12 +2357,14 @@ def shell( kind: Literal["arc", "intersection"] = "arc", ) -> Any: """ - make a shelled s...
1
1
1
[{"id": "G0", "claim": "The pull request removed the guard that kept faceList=None out of the face loop, so passing None now raises a TypeError where the original code handled it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
CadQuery__cadquery__858
CadQuery/cadquery
858
defect
247f0e6f3c6cb251005c8e70f9f0d529fc66fee2
727ab27c7256bc830c6a80fd4c91d3a400d9e833
Added cylinder 3D primitive to Workplane.
I've added a cylinder 3D primitive to the `Workplane`, as per item on the roadmap, https://github.com/CadQuery/cadquery/blob/master/doc/roadmap.rst My first submission to cadquery so a review is very much appreciated, and I'm happy to make any changes requested.
diff --git a/cadquery/cq.py b/cadquery/cq.py index 6ab87ff4a..ea0df3b54 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -3800,6 +3800,69 @@ def sphere( else: return self.union(spheres, clean=clean) + def cylinder( + self: T, + height: float, + radius: float, + ...
2
2
1
[{"id": "G0", "claim": "The docstring's last sentence wrongly says 'one box' is created when the stack is empty; the suggestion rewrites it to say 'cylinder using the current workplane center is created'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
CadQuery__cadquery__954
CadQuery/cadquery
954
defect
6c8502fbf366d72f3dd004c43c96b16d5b322c2c
b8c0063fae3557750c11d9ea1402ad8d7fd2c44e
added combine="cut" option for 3D operations
Aims to target #30 I added the possibility to use combine="cut" for 3D operations to remove material from the context solid. It's essentially a shorcut of calling `cut()` later. I didn't added it for `extrude` as it has already `cutBlind` that does the same thing, I didn't added it to `text` since it has a `cut` kw...
diff --git a/cadquery/cq.py b/cadquery/cq.py index bdadfe4a2..c329588fc 100644 --- a/cadquery/cq.py +++ b/cadquery/cq.py @@ -2951,7 +2951,7 @@ def twistExtrude( self: T, distance: float, angleDegrees: float, - combine: bool = True, + combine: Union[bool, str] = True, cl...
6
6
0
[{"id": "G0", "claim": "The new combine docstring in twistExtrude and sweep should say \"cut\" removes the resulting solid from the parent solids rather than with the parent solids.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The combine/cut di...
null
CadQuery__cadquery__975
CadQuery/cadquery
975
defect
fdc5d0f6ba7f0f3e6ec6874b5c5edd5bbbd0cf51
c9f11d9a591f87f351be6d6c35d533f7934bbcd4
Additional constraints
- [x] simplification of the assy solver - [x] validation - [x] PointOnLine - [x] FixedPoint - [x] FixedAxis - [x] FixedRotation - [x] docs
diff --git a/cadquery/assembly.py b/cadquery/assembly.py index fbc29b7f9..11fbeb61b 100644 --- a/cadquery/assembly.py +++ b/cadquery/assembly.py @@ -4,13 +4,12 @@ from uuid import uuid1 as uuid from .cq import Workplane -from .occ_impl.shapes import Shape, Compound, Face, Edge, Wire -from .occ_impl.geom import Loca...
6
5
1
[{"id": "G0", "claim": "The validation error message misspells \"entity\" as \"entitiy\" and should read \"Unsupported entity {a} for constraint {kind}.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sharing a single param value across the Axis...
null
Calsign__gazelle_rust__17
Calsign/gazelle_rust
17
defect
41bbb100217f25545b6bafdcb068ca089b62c1d7
f227390842e58d92f86e9dd5201394be0ae31c0e
Support multi-version crate universe dependencies
This is work in progress, but I am curious about your feedback even before I am done implementing this. I am adding two new directives: * `rust_cargo_workspace` (optional), this can be used to specify the workspace manifest `Cargo.toml` file. * `rust_multiversion_crate` (0 or more instances allowed). This is to in...
diff --git a/README.md b/README.md index a8091f5..db31753 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,17 @@ adding a file to `srcs` for an existing target, and gazelle will respect that ex gazelle\_rust does not currently support sources in subdirectories, and will always place targets into build files adjace...
8
5
3
[{"id": "G0", "claim": "The ordering of the branches in resolve.go may need to be swapped so that internal crates are resolved before crate_universe dependencies, since resolving internal workspace dependencies is something Gazelle already does.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scop...
null
Calsign__gazelle_rust__19
Calsign/gazelle_rust
19
defect
c6547e1f810c95f25a2ed99f94ee6ab9aba63976
0db467d6104f8a1c636af160db3af53c20a17c05
Support generation of cargo_build_script targets
If `build.rs` exists next to `Cargo.toml`, a `cargo_build_script` target will be generated.
diff --git a/generation_tests/cargo/all_kinds/BUILD.out b/generation_tests/cargo/all_kinds/BUILD.out index e81dd3e..d0219b6 100644 --- a/generation_tests/cargo/all_kinds/BUILD.out +++ b/generation_tests/cargo/all_kinds/BUILD.out @@ -5,7 +5,7 @@ load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_tes...
5
4
1
[{"id": "G0", "claim": "The new inferRuleKind mapping of build.rs to cargo_build_script only affects pure-bazel mode and may not do the right thing by default, so the reviewer asks to make this change separately and test it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
Calsign__gazelle_rust__22
Calsign/gazelle_rust
22
defect
da4a09f0f08352dcfeb226e6494b5101e68ea12a
45fd3f131f9ae2c5bbb271440ff463d4edba9540
Implement support for Rust features
Close #21.
diff --git a/Cargo.toml b/Cargo.toml index 5131314..bc230ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ path = "rust_parser/main.hs" [dependencies] cargo-lock = "11.0.0" -cargo_toml = "0.22.3" +cargo_toml = { version = "0.22.3", features = ["features"]} syn = { version = "2", features = ["full", "visi...
7
7
2
[{"id": "G0", "claim": "The README's new features section should be clarified: state that directives only apply to newly-generated targets (for existing targets the crate_features attribute is the source of truth), explain the default behavior (pulling the list from default features in Cargo.toml) before the customizat...
null
Calsign__gazelle_rust__24
Calsign/gazelle_rust
24
defect
da4a09f0f08352dcfeb226e6494b5101e68ea12a
3e38db006cebd46bc7bc8083323aed69860cd5f6
Switch from rust-protobuf to prost
Migrate Rust protobuf generation from rust-protobuf (via rules_rust_protobuf) to prost (via rules_rust_prost). This also updates the plugin to resolve imports from `rust_prost_library` targets. My primary motivation for this was to resolve a bunch of warnings that appear in the rust-protobuf generated code when buil...
diff --git a/BUILD.bazel b/BUILD.bazel index 8ab73d1..bf6f06d 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -49,8 +49,8 @@ gazelle( command = "update-repos", ) -# NOTE: need to use the version of protobuf from rules_rust so that it matches -# gazelle:resolve rust protobuf @rules_rust_protobuf//3rdparty/crates:p...
2
2
2
[{"id": "G0", "claim": "Add a simple test to generation_tests for resolution of rust_prost_library dependencies.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "CI is failing rustfmt; formatting should be fixed.", "category": "correctness", "verdict": "s...
null
Calsign__gazelle_rust__26
Calsign/gazelle_rust
26
defect
13d3e1277c4afef566310ae84dc0d2ba93e4d71a
9df0b97f22f06c5e0dda2da736ce8dbc9579d826
Handle r#type identifiers correctly
This allows the plugin to handle statements like `mod r#type;`.
diff --git a/generation_tests/cargo/rtype/BUILD.in b/generation_tests/cargo/rtype/BUILD.in new file mode 100644 index 0000000..65bb808 --- /dev/null +++ b/generation_tests/cargo/rtype/BUILD.in @@ -0,0 +1 @@ +# gazelle:rust_mode generate_from_cargo diff --git a/generation_tests/cargo/rtype/BUILD.out b/generation_tests/c...
2
2
1
[{"id": "G0", "claim": "Update the README.md description of the new rtype generation test.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should also add a parser test in rust_parser/tests/parse_test.rs.", "category": "testing", "verdict": ...
null
Calsign__gazelle_rust__32
Calsign/gazelle_rust
32
defect
d1ae0322cbb3934eb87c8860d508d81c45b2e524
ae015372dc220a3b9ea2f996042de7b3637bf41f
feat: parse multi-length test attributes
Not sure if this would be the preferred fix for #31 or if a more generic functionality of specifying "special" identifiers would be preferred. ## AI Summary This pull request enhances the Rust parser's ability to detect test functions, especially those using async or custom test frameworks, and adds corresponding ...
diff --git a/rust_parser/parser.rs b/rust_parser/parser.rs index 6a459d7..89a632e 100644 --- a/rust_parser/parser.rs +++ b/rust_parser/parser.rs @@ -529,6 +529,28 @@ impl<'ast> AstVisitor<'ast> { } } +/// Returns true if the path represents a test attribute. +/// Handles both #[test] and async test attributes l...
7
6
0
[{"id": "G0", "claim": "There is trailing whitespace after the #[cfg(test)] attribute in rust_parser/test_data/async_tests.rs; remove it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The control flow in is_test_attribute with an explicit retur...
null
Canop__bacon__271
Canop/bacon
271
defect
a4cc2c713543d4b15ee446878a630eb8d0667d33
b628033726f8028c52a08b070bc0afb64aab640f
Biome analyzer
For use with https://biomejs.dev/ Example config: ``` [jobs.biome-libs] env.RAYON_NUM_THREADS = "1" # for constant ordering of items command = [ "npx", "@biomejs/biome", "lint", "--colors", "force", "./libs", "--skip", "complexity/useArrowFunction", "--skip", "style/useTemplate", ] n...
diff --git a/Cargo.lock b/Cargo.lock index 13afadf3..fe3d839c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,7 +125,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "bacon" -version = "3.4.0" +version = "3.4.0-biome" dependencies = [ "anyhow", "cargo_metad...
1
1
0
[{"id": "G0", "claim": "The doc comment on build_report in the new biome analyzer should say biome instead of the copied-from-eslint wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Canop__bacon__354
Canop/bacon
354
defect
d649d31243939c2325ac7357a3cc86b004f2c0e0
e1e01d9da62c75db9ccdafdb1555087a2c74cf43
add support for nextest 0.9.95
Fix #350
diff --git a/src/analysis/eslint/eslint_line_analyzer.rs b/src/analysis/eslint/eslint_line_analyzer.rs index 0eb20c58..bb26392d 100644 --- a/src/analysis/eslint/eslint_line_analyzer.rs +++ b/src/analysis/eslint/eslint_line_analyzer.rs @@ -16,7 +16,7 @@ pub struct EslintLineAnalyzer; impl LineAnalyzer for EslintLineA...
4
3
3
[{"id": "G0", "claim": "The condition '!(ts.raw != \"stderr\" || ts.raw != \"stdout\")' always evaluates to false, so the guard never filters out unexpected values; it should be '(ts.raw != \"stderr\" && ts.raw != \"stdout\")'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
Cantera__cantera__1072
Cantera/cantera
1,072
defect
1420a4cf2901c8ae59d895fec4ab19fc41580207
1d32e37263d791228c9d3232f863423eccbc9a8d
Extend BinarySolutionTabulatedThermo by tabulated partial molar volumes
Enable to consider non-constant partial molar volumes provided by tabular data, since the partial molar volume of typical battery intercalation materials shows strong dependency on e.g. lithium stoichiometry. The tabular data is included in the same table as enthalpy and entropy data. -implement optional partialMola...
diff --git a/include/cantera/thermo/BinarySolutionTabulatedThermo.h b/include/cantera/thermo/BinarySolutionTabulatedThermo.h index 1a242a9ee26..91e319ff914 100644 --- a/include/cantera/thermo/BinarySolutionTabulatedThermo.h +++ b/include/cantera/thermo/BinarySolutionTabulatedThermo.h @@ -147,12 +147,19 @@ class BinaryS...
17
16
3
[{"id": "G0", "claim": "New code should use the standard `double` instead of the legacy `doublereal` typedef.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new code should follow the project's whitespace and formatting style: 4-space indent...
null
Cantera__cantera__1076
Cantera/cantera
1,076
defect
e77148b528cf436294048981050bbcf270b67479
6345889287fd20e40489d8dc234d69d06361f0f5
Expose C++ Units to Python
<!-- Thanks for contributing code! Please include a description of your change and check your pull request against the list below. For further questions, refer to the contributing guide (https://github.com/Cantera/cantera/blob/main/CONTRIBUTING.md). --> **Changes proposed in this pull request** <!-- Provide a cle...
diff --git a/include/cantera/base/Units.h b/include/cantera/base/Units.h index 2591d487547..2d7c1c9fb0c 100644 --- a/include/cantera/base/Units.h +++ b/include/cantera/base/Units.h @@ -109,6 +109,9 @@ class UnitSystem //! recognize an optional argument with a default value) UnitSystem() : UnitSystem({}) {} ...
9
9
1
[{"id": "G0", "claim": "The string representation of Python Units objects (e.g. <Units(999.9999999999999 kmol / m^3)>) is confusing because it displays the conversion factor, so Python Units objects should only be constructible in the default unit system and be represented without the leading factor.", "category": "des...
null
Cantera__cantera__1077
Cantera/cantera
1,077
defect
1420a4cf2901c8ae59d895fec4ab19fc41580207
890e04a5c420a85d097b8e1981699f8c89c5e139
Gas transport polynomial fits in Python
Some modifications that allow accessing and modifying the gas transport properties polynomial fits, also from the python interface. This is an addition to the earlier pull request #817 and more specifically, a reply to the suggestion of @ischoegl to make the access functions to the transport polynomials also availab...
diff --git a/include/cantera/cython/wrappers.h b/include/cantera/cython/wrappers.h index 65225289a69..96cd0f479b8 100644 --- a/include/cantera/cython/wrappers.h +++ b/include/cantera/cython/wrappers.h @@ -59,11 +59,32 @@ void CxxArray2D_set(Cantera::Array2D& array, size_t i, size_t j, double value) void PREFIX ## ...
19
17
3
[{"id": "G0", "claim": "The pull request should add unit tests for the new Python functions that get and modify the gas transport polynomial fits.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing doxygen documentation of the transport polynom...
null
Cantera__cantera__1084
Cantera/cantera
1,084
defect
375902b50127d046bc6d1b7e7e6dd86e8fd3d89a
03b9b5fe2de55d5b04c0e36174b0c2c6892709b4
Make rate constant calculation consistent with Kee, et al.
<!-- Thanks for contributing code! Please include a description of your change and check your pull request against the list below. For further questions, refer to the contributing guide (https://github.com/Cantera/cantera/blob/main/CONTRIBUTING.md). --> **Changes proposed in this pull request** <!-- Provide a cle...
diff --git a/SConstruct b/SConstruct index 533510c7d3c..4c850706558 100644 --- a/SConstruct +++ b/SConstruct @@ -678,6 +678,11 @@ config_options = [ "verbose_tests", """If enabled, verbose test output will be shown.""", False), + BoolVariable( + "legacy_rate_constants", + """...
5
4
2
[{"id": "G0", "claim": "The PR should include a simple unit test demonstrating switching back and forth between legacy and non-legacy rate constants and confirming that each matches theory.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'legacy_rate...
null
Cantera__cantera__1090
Cantera/cantera
1,090
defect
703fd1d1541cfefd4ffecf9ca96a0e37dc70dbfb
a19a3947ed9ce6c88b933eef29d0c284d39a5710
add Tsang closed-form falloff
<!-- Thanks for contributing code! Please include a description of your change and check your pull request against the list below. For further questions, refer to the contributing guide (https://github.com/Cantera/cantera/blob/main/CONTRIBUTING.md). --> **Changes proposed in this pull request** Add Wing Tsang's fal...
diff --git a/include/cantera/kinetics/Falloff.h b/include/cantera/kinetics/Falloff.h index f31dc754c68..ad7799d2c83 100644 --- a/include/cantera/kinetics/Falloff.h +++ b/include/cantera/kinetics/Falloff.h @@ -258,6 +258,65 @@ class SRI : public Falloff doublereal m_e; }; +//! The 1- or 2-parameter Tsang falloff...
9
8
1
[{"id": "G0", "claim": "The pull request should not add the Tsang capability to the CTI/CTML formats (ck2cti, ctml_writer and related scripts), and since the format is not in the CHEMKIN manual it does not need to be added to the ck2yaml converter either.", "category": "design", "verdict": "supported", "priority": "P1"...
null
Cantera__cantera__1133
Cantera/cantera
1,133
defect
4570f3e6b0c7e964181ffb4ac2486b223cf80cde
d8586774807b3a52dc99a3410374990a34ca4459
Improve YAML formatting
Leverage `fmt::format` to appropriately round values. <!-- Thanks for contributing code! Please include a description of your change and check your pull request against the list below. For further questions, refer to the contributing guide (https://github.com/Cantera/cantera/blob/main/CONTRIBUTING.md). --> **Chan...
diff --git a/interfaces/cython/cantera/test/test_composite.py b/interfaces/cython/cantera/test/test_composite.py index f47cfe11c0e..189d14a67b4 100644 --- a/interfaces/cython/cantera/test/test_composite.py +++ b/interfaces/cython/cantera/test/test_composite.py @@ -542,12 +542,11 @@ def test_input_data_custom(self): ...
3
3
2
[{"id": "G0", "claim": "Pass the string to emitString by const reference instead of by value, to avoid copying it on every call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten formatDouble now emits values with multiple trailing zeros ...
null
Cantera__cantera__1144
Cantera/cantera
1,144
defect
7fc5a2d795272f3d9e1750b6a3e428d98701843a
562938d55a3358719d2d0b1cf96582a4462486b4
Add GH Actions runners for mingw and Intel compiler
<!-- Thanks for contributing code! Please include a description of your change and check your pull request against the list below. For further questions, refer to the contributing guide (https://github.com/Cantera/cantera/blob/main/CONTRIBUTING.md). --> **Changes proposed in this pull request** <!-- Provide a cle...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f62687c33c..d6e296b3ae1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -372,3 +372,142 @@ jobs: run: scons test show_long_tests=yes verbose_tests=yes --debug=time env: GITHUB_ACTIONS: "t...
10
10
1
[{"id": "G0", "claim": "The new --cantera-conf option should read the file passed to it (e.g. by passing cantera_conf into Variables()) rather than requiring a cantera.conf file and copying the user-specified file over cantera.conf.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null