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
seqan__seqan3__2557
seqan/seqan3
2,557
defect
e0ea37a54e1b544d6a6e7215fe1d4b3bda5a14b7
26a48a38b3f8aa3050e0b7f0a2ef187634e3db20
[MISC] Alphabet: Move some views to alphabet views - Part 1
First part of Resolving https://github.com/seqan/product_backlog/issues/337 and https://github.com/seqan/product_backlog/issues/338 and https://github.com/seqan/product_backlog/issues/339 and https://github.com/seqan/product_backlog/issues/340 and https://github.com/seqan/product_backlog/issues/341 and http...
diff --git a/include/seqan3/alignment/aligned_sequence/debug_stream_alignment.hpp b/include/seqan3/alignment/aligned_sequence/debug_stream_alignment.hpp index a8765a8672a..8355d7d1013 100644 --- a/include/seqan3/alignment/aligned_sequence/debug_stream_alignment.hpp +++ b/include/seqan3/alignment/aligned_sequence/debug_...
3
3
1
[{"id": "G0", "claim": "The \\header_file path in the moved rank_to view's documentation still says seqan3/range/views/rank_to.hpp and should say seqan3/alphabet/views/rank_to.hpp.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The example snippet...
null
seqan__seqan3__2563
seqan/seqan3
2,563
defect
5cd019b11624ba337f12fef10e6bd0884982b3b6
4bc7c3ecf84c488fd4678ed28febc4939850f7f5
[MISC] deprecate seqan3::views::move
resolve https://github.com/seqan/product_backlog/issues/328
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b3919fa083..abb27add6bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -210,6 +210,9 @@ regression test suite and patches at https://github.com/seqan/seqan3/tree/master ([\#2524](https://github.com/seqan/seqan3/pull/2524)). * Deprecated `seqan3::views::drop`, use `st...
1
1
1
[{"id": "G0", "claim": "The tutorial snippet doc/tutorial/sequence_file/sequence_file_solution3.cpp still uses the view this PR deprecates (seqan3::views::move) and only builds because its SEQAN3_WORKAROUND_GCC_96070 workaround is always active on GCC, so it should be updated as part of the deprecation.", "category": "...
null
seqan__seqan3__2567
seqan/seqan3
2,567
defect
5cd019b11624ba337f12fef10e6bd0884982b3b6
dda1a769947ef6a2d9d8c2d6745ccd30e45507c9
[MISC] deprecate seqan3::views::as_const
Resolves https://github.com/seqan/product_backlog/issues/323
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b3919fa08..14528de655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -208,6 +208,8 @@ regression test suite and patches at https://github.com/seqan/seqan3/tree/master `seqan3::views::convert` in the meantime, but we encourage using `std::views::transform` instead as s...
4
2
0
[{"id": "G0", "claim": "Rewrite the CHANGELOG entry for the as_const deprecation to the proposed wording (\"reimplementing it yourself\" with the PR reference at the end of the sentence) instead of \"re-implementing this yourself.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "int...
null
seqan__seqan3__2581
seqan/seqan3
2,581
defect
fcad6ef8dfffc140264dfed952434ffaa3e81f9a
b3d615ad4a9424e0d042b00a1085161455546a72
[MISC] move seqan3::views::to to seqan3/utility/views/
Resolves https://github.com/seqan/product_backlog/issues/355
diff --git a/include/seqan3/alignment/matrix/detail/aligned_sequence_builder.hpp b/include/seqan3/alignment/matrix/detail/aligned_sequence_builder.hpp index 0a6211d938b..f06ed2e62c8 100644 --- a/include/seqan3/alignment/matrix/detail/aligned_sequence_builder.hpp +++ b/include/seqan3/alignment/matrix/detail/aligned_sequ...
5
5
1
[{"id": "G0", "claim": "The definition of seqan3::views::to in the new utility/views/to.hpp should read `inline constexpr auto to = ::ranges::to;` instead of `::ranges::views::to`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The views::to def...
null
seqan__seqan3__2596
seqan/seqan3
2,596
defect
9c9e01b66bbb9601d898f3e6e8dcf3f8b813d3f8
dbd4642e0d9187182695bbeff87bb18ebcb6d0a0
Swap meaning of is_alternative and holds_alternative
Resolves https://github.com/seqan/product_backlog/issues/314
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b596ac6c26..3de87c4c1f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -140,6 +140,8 @@ regression test suite and patches at https://github.com/seqan/seqan3/tree/master `using namespace seqan3::literals` to import literal operators. The old way of explicitly importing...
1
1
1
[{"id": "G0", "claim": "The changelog entry the pull request adds links to the wrong pull request (#2568); it should reference #2596.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
seqan__seqan3__2601
seqan/seqan3
2,601
defect
01782f9382e05568ac3b5d9861932e24096ea048
b407d59250e1006d51b901554aefd5baba81a0d1
Deprecate/take exactly
Fixes https://github.com/seqan/product_backlog/issues/331
diff --git a/CHANGELOG.md b/CHANGELOG.md index 053f3e03ff7..5ddd06e6e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -238,6 +238,8 @@ regression test suite and patches at https://github.com/seqan/seqan3/tree/master [\#2541](https://github.com/seqan/seqan3/pull/2541). * We deprecated `seqan3::views::take_line` an...
5
5
2
[{"id": "G0", "claim": "The new take_exactly CHANGELOG entry should reference the pull request in the parenthesised style used by the neighbouring entries, i.e. `([#2601](...))` instead of a bare `[#2601](...)`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1"...
null
seqan__seqan3__2612
seqan/seqan3
2,612
defect
5d7e7fa8ad8c7964f575d763f85ffeae4fe52c04
5d9e85feb2c29f96400a15dc0e5ddcefb53f8d6a
[MISC] Remove template argument from pipeable_config_element.
Also inherits privately from the base class such that a reference or pointer to it cannot be formed. ----- This is one of the commits that survived the rebase of https://github.com/seqan/seqan3/pull/2198.
diff --git a/include/seqan3/alignment/configuration/align_config_band.hpp b/include/seqan3/alignment/configuration/align_config_band.hpp index 29bba85f33..27b0ffe469 100644 --- a/include/seqan3/alignment/configuration/align_config_band.hpp +++ b/include/seqan3/alignment/configuration/align_config_band.hpp @@ -70,7 +70,...
1
1
1
[{"id": "G0", "claim": "The search configuration classes (max_error_total, max_error_substitution, max_error_insertion, max_error_deletion, on_result, output_query_id, output_reference_id, output_reference_begin_position, output_index_cursor, result_type) still inherit publicly from pipeable_config_element, which appea...
null
seqan__seqan3__2614
seqan/seqan3
2,614
defect
77c5e8a1381ed39ae96a6966c008f56dd15152cb
059684d7b03d4aa35c4df678d16bec165ad4fc53
rework tests for configuration
----- This is one of the commits that survived the rebase of https://github.com/seqan/seqan3/pull/2198.
diff --git a/test/unit/alignment/configuration/align_config_band_test.cpp b/test/unit/alignment/configuration/align_config_band_test.cpp index dca692797de..3e6df45e2f4 100644 --- a/test/unit/alignment/configuration/align_config_band_test.cpp +++ b/test/unit/alignment/configuration/align_config_band_test.cpp @@ -12,12 +...
2
1
0
[{"id": "G0", "claim": "The hard-coded `config_count = 18` in the test fixture will silently go stale when a new configuration element is added to seqan3::detail::align_config_id, so it should derive the number from align_config_id::SIZE and the NOTE comment should tell maintainers both to update this number and to add...
null
seqan__seqan3__2625
seqan/seqan3
2,625
defect
77c5e8a1381ed39ae96a6966c008f56dd15152cb
9e2e99c3eed42b1344ecb54e84792edb60b958ff
[FIX#151] Repairing input range adaptors (and iterator_traits)
fixes https://github.com/seqan/product_backlog/issues/151
diff --git a/include/seqan3/core/detail/iterator_traits.hpp b/include/seqan3/core/detail/iterator_traits.hpp index f9ecacdeb3c..4a93679d8a6 100644 --- a/include/seqan3/core/detail/iterator_traits.hpp +++ b/include/seqan3/core/detail/iterator_traits.hpp @@ -153,52 +153,87 @@ struct size_type<it_t> namespace seqan3::d...
4
3
0
[{"id": "G0", "claim": "The workaround comment should name examples of the view combinations that do not work with the gcc \"fix\".", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment should read \"for a C++-20 input iterator\" (adding the ...
null
seqan__seqan3__2637
seqan/seqan3
2,637
defect
d38b90aa133ebc2ff60d3f78d4c7d3019c480781
7626aa84306ca93d90415358852ddbd1afa22dba
Move range
last header in `range/*` that needs to be moved :) resolves https://github.com/seqan/product_backlog/issues/272
diff --git a/include/seqan3/alphabet/views/translate.hpp b/include/seqan3/alphabet/views/translate.hpp index 8742e4b3980..d6e99f905b0 100644 --- a/include/seqan3/alphabet/views/translate.hpp +++ b/include/seqan3/alphabet/views/translate.hpp @@ -21,8 +21,8 @@ #include <seqan3/alphabet/aminoacid/aa27.hpp> #include <seq...
4
3
0
[{"id": "G0", "claim": "The redundant re-opening of namespace seqan3::detail right after the adaptor_base class (splitting one namespace block in two) should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "adaptor_for_view_without_arg...
null
seqan__seqan3__2651
seqan/seqan3
2,651
defect
662696c36347c050d63dd6fc5b752446b11ff875
5e5c7cfed78121b0c11f35cd57c718de15755b1a
Borrowed range
https://eel.is/c++draft/ranges.syn defines more views to be `std::ranges::borrowed_range`s. This PR adds all of them. Doing this showed that std::views::take isn't a borrowed range in gcc-10, this PR will define that property also for gcc-10. gcc-10.3 does this anyway.
diff --git a/include/seqan3/std/ranges b/include/seqan3/std/ranges index 7f27d02b12..fd070ce511 100644 --- a/include/seqan3/std/ranges +++ b/include/seqan3/std/ranges @@ -42,11 +42,13 @@ namespace ranges { //!\brief std::ranges::views are valid range-v3 views -template<class T> +template<::std::derived_from<::std::r...
4
4
1
[{"id": "G0", "claim": "The comment should start with a capital 'Note:' instead of lowercase 'note:'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The RANGE_V3_VERSION guard comparison is inverted — with 'we require 0.11.0', the workaround shoul...
null
seqan__seqan3__2653
seqan/seqan3
2,653
defect
ebf3f2fc18c1893d419a090c0784c2f507ddf28c
857fc6dba49fd03618df74dc819d4d491a6346e7
Update doc
These are the left-over documentation issues that we found when going over the documentation for api-stability.
diff --git a/include/seqan3/alphabet/aminoacid/aa27.hpp b/include/seqan3/alphabet/aminoacid/aa27.hpp index bbe2d6c6c20..7526e4ff90f 100644 --- a/include/seqan3/alphabet/aminoacid/aa27.hpp +++ b/include/seqan3/alphabet/aminoacid/aa27.hpp @@ -34,7 +34,7 @@ namespace seqan3 * Y, Z, * * * Like most alphabets, this al...
1
1
1
[{"id": "G0", "claim": "In the dna5 class documentation added by this pull request, the character-literal reference was copy-pasted from dna4 and reads \"'A'_dna4\" where it should read \"'A'_dna5\", as the suggested fix proposes.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introd...
null
seqan__seqan3__2658
seqan/seqan3
2,658
defect
bfbbb38c33d6035543a6acb130f56ab6dbc16868
5b6c6d68709f3a9402eb5d77cd73f46a53e4a465
remove ref_seq, evalue, bit_score from sam file output
sam_file_output does not need the fields ref_seq, evalue, bit_score. This commit remove those fields from the default-fields and ensures that custom fields don't contain those fields. This commit also splits ::push_back and ::emplace_back into four versions to deprecate the usage of the old default-fields case.
diff --git a/include/seqan3/io/alignment_file/output.hpp b/include/seqan3/io/alignment_file/output.hpp index 03d0f45812b..5acc72f83fb 100644 --- a/include/seqan3/io/alignment_file/output.hpp +++ b/include/seqan3/io/alignment_file/output.hpp @@ -25,7 +25,6 @@ template <detail::fields_specialisation selected_field_ids_ =...
5
5
0
[{"id": "G0", "claim": "The added comments in sam_file/output.hpp are confusing and should be reworded as suggested (explaining that the new syntax enforces via static_assert that field::ref_seq, field::evalue and field::bit_score aren't set, which makes it complicated to decide which syntax is used).", "category": "do...
null
seqan__seqan3__2687
seqan/seqan3
2,687
defect
aceb1995ad9c54503eb836276bb664b83baba361
fc8095ae8c2542efa2f31f5305ffc699731185df
[FIX] skip tests that do not work with root rights
Follow-up should be a cron that runs ctest with sudo :)
diff --git a/test/include/seqan3/test/file_access.hpp b/test/include/seqan3/test/file_access.hpp new file mode 100644 index 00000000000..1dec7d24190 --- /dev/null +++ b/test/include/seqan3/test/file_access.hpp @@ -0,0 +1,56 @@ +// -----------------------------------------------------------------------------------------...
2
2
1
[{"id": "G0", "claim": "The new test header seqan3/test/file_access.hpp should get its own test target, registered as seqan3_test(file_access_test.cpp) in test/unit/test/CMakeLists.txt (raised as a suggestion block with a question mark).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intro...
null
seqan__seqan3__2754
seqan/seqan3
2,754
defect
cd2b2d7eb41611f452d2615fe882ca4690489a1a
82c3045b2dcc3b087883d33c80ebc213eb7f0c38
[MISC] Increase coverage in argument_parser/validator
Part of: https://github.com/seqan/product_backlog/issues/222 I was not able to close one coverage gap. I think some code blocks will almost never be executed or only if the OS seriously messes something up. Here is the Codecov report I used: https://codecov.io/gh/seqan/seqan3/src/master/include/seqan3/argument_p...
diff --git a/include/seqan3/argument_parser/validators.hpp b/include/seqan3/argument_parser/validators.hpp index e4c32bf892..3a9f8450e2 100644 --- a/include/seqan3/argument_parser/validators.hpp +++ b/include/seqan3/argument_parser/validators.hpp @@ -576,10 +576,12 @@ class input_file_validator : public file_validator_...
5
4
1
[{"id": "G0", "claim": "The whole fifo-based test code (mkfifo/sys/stat.h) needs some '#if' guards so it is only applied under Linux systems.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Branches that really cannot be checked, such as the OS-failure c...
null
seqan__seqan3__2769
seqan/seqan3
2,769
defect
41a3552889720d7297e008a32c13674cf5d3469b
9e6f031d6335f174a9deb48b42d33bb6c3abf534
[MISC] Adjust default options when outputing FastA-Files
Most programs output fasta files in this format: ``` >Test1 AACCGGTT ``` By default `seqan3` puts a whitespace in between '>' and 'Test1'. This default is being changed with this PR to meet the standard of most other programs out there. seqan3 default: ``` > Test1 AACCGGTT ```
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c95656f315..3f0ab979a6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,11 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. * Resolved an issue that prevented the FM-Index from being constructed correctly for inputs larger than 4 ...
4
3
0
[{"id": "G0", "claim": "The CHANGELOG entry for the changed `fasta_blank_before_id` default should be moved out of the bug-fix area into a `## API changes` / `#### I/O` section of the current release instead of being listed as a breaking change.", "category": "documentation", "verdict": "supported", "priority": "P2", "...
null
seqan__seqan3__2770
seqan/seqan3
2,770
defect
41a3552889720d7297e008a32c13674cf5d3469b
fb2ae2af54d79d7a4984b14dcf2c62cf70120b2a
[FEAT] Option to ignore blanks before ids when reading FastA-Files
A simple roundtrip through seqan3 (reading and writing a fasta file) should not introduce any changes with the default options ``` auto fout = seqan3::sequence_file_input{std::istringstream{input}, seqan3::format_fasta{}} | seqan3::sequence_file_output{std::ostringstream{}, seqan3::format_fasta{}};...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c95656f315..4c99009a58a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,10 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. * Resolved an issue that prevented the FM-Index from being constructed correctly for inputs larger than 4 ...
5
2
2
[{"id": "G0", "claim": "A closing bracket is missing in the commented-out TODO block added to the integration test (the line '// when the default of output will change (no blanks before the id' leaves the parenthesis unclosed).", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduce...
null
seqan__seqan3__2806
seqan/seqan3
2,806
defect
4d9bb7a33e89fd4c107ddf7a653727e8bc97041a
1da6b6fa6bbe0b14a9fdb0fc76efb003167efdfe
[INFRA,DOC] Make snippets compile without -Wno-unused
Resolves https://github.com/seqan/product_backlog/issues/398 This also "fixes": * `// modify via structured bindings and references:` Doesn't work as advertised. * Some places where we used structural bindings instead of the record's member functions
diff --git a/doc/howto/write_an_alphabet/dna2_semialphabet.cpp b/doc/howto/write_an_alphabet/dna2_semialphabet.cpp index ab12628789b..b39a98211ef 100644 --- a/doc/howto/write_an_alphabet/dna2_semialphabet.cpp +++ b/doc/howto/write_an_alphabet/dna2_semialphabet.cpp @@ -8,7 +8,7 @@ //! [semialphabet] #include <cassert>...
5
5
0
[{"id": "G0", "claim": "In the persist_view snippet the unused variable v should be marked [[maybe_unused]] instead of being cast to void, as it might be clearer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The line printing the taken range s...
null
seqan__seqan3__2840
seqan/seqan3
2,840
defect
e142cf80277858923148304359357e8e84d38ea8
26ae07ed9a463647bc3b9539a731ae8dbc54c75e
Doc/cleanup search landing page
Part of https://github.com/seqan/product_backlog/issues/393 Fixes https://github.com/seqan/product_backlog/issues/153
diff --git a/include/seqan3/search/all.hpp b/include/seqan3/search/all.hpp index 506501c440b..ef5758f416a 100644 --- a/include/seqan3/search/all.hpp +++ b/include/seqan3/search/all.hpp @@ -18,10 +18,13 @@ /*!\defgroup search Search * \brief Data structures and algorithms for the search of query sequences in a larg...
2
2
1
[{"id": "G0", "claim": "The file defines \\defgroup search Search twice in the same header, which breaks the Doxygen module definition.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The search example in the module docs should be included via a \...
null
seqan__seqan3__2869
seqan/seqan3
2,869
defect
20d4ce9b1dab181e7c3f7270939043539c855a2d
16480deee911c8815319081cd63eeb3961a3a789
[FIX] correct parsing of IDs in fasta files
Fasta has the following structure: ``` > MyID MySeq ``` This should be parsed into 'MyID' and 'MySeq' (This works fine). If the sequence id has '>' as a character, this might fail: ``` > >MyID MySeq ``` This will be parsed into 'MyId' and 'MySeq', which does not meet the specification. It should be pa...
diff --git a/include/seqan3/io/sequence_file/format_fasta.hpp b/include/seqan3/io/sequence_file/format_fasta.hpp index a74f8d737e9..3a70924d4e2 100644 --- a/include/seqan3/io/sequence_file/format_fasta.hpp +++ b/include/seqan3/io/sequence_file/format_fasta.hpp @@ -189,7 +189,9 @@ class format_fasta #if SEQ...
7
6
1
[{"id": "G0", "claim": "Fix the typo in the added comment: 'skip eading' should read 'skip leading'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tricky_id test's expected output looks wrong - shouldn't the additional '>' be dropped when rea...
null
seqan__seqan3__2889
seqan/seqan3
2,889
defect
7ec6821213b4ffda92a16c514e4af9cfbf3fcc44
5dc181b7bb5213cd7549f530a228dd46996d065a
[MISC] Remove dependency on seqan3::sequence_container.
This could also be considered a fix, because the `sequence_container` concept is something we shouldn't use anymore. The concept basically requires everything that a resizable vector has, but in most cases you do not need ALL of resizable vector interface but just e.g. `push_back()`. The concept now is much more lig...
diff --git a/include/seqan3/argument_parser/argument_parser.hpp b/include/seqan3/argument_parser/argument_parser.hpp index 27ff73bc038..c7291535078 100644 --- a/include/seqan3/argument_parser/argument_parser.hpp +++ b/include/seqan3/argument_parser/argument_parser.hpp @@ -317,7 +317,7 @@ class argument_parser ...
12
12
3
[{"id": "G0", "claim": "The new concept.hpp uses std::remove_cvref_t/std::remove_reference_t but only includes <string>, so it should also include <seqan3/std/type_traits>.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The concept header should inc...
null
seqan__seqan3__2932
seqan/seqan3
2,932
defect
f6680607a857a8a3f1c3d28dc5350a75ad764311
8e78c9f5b2ddd96894bf7a2bf39c7682e0f8c761
[MISC] add minimiser_view::basic_iterator::base
This PR adds a `base()` function to `minimiser_view::basic_iterator` which returns the underlying iterator of that view. This is in line with the standard which offers the same `base` function for view iterators, e.g. https://eel.is/c++draft/range.filter#iterator-5. The use case is that @eaasna needs to know the pos...
diff --git a/include/seqan3/search/views/minimiser.hpp b/include/seqan3/search/views/minimiser.hpp index 110ef3e12f6..5d09173dd5f 100644 --- a/include/seqan3/search/views/minimiser.hpp +++ b/include/seqan3/search/views/minimiser.hpp @@ -379,6 +379,18 @@ class minimiser_view<urng1_t, urng2_t>::basic_iterator re...
2
2
0
[{"id": "G0", "claim": "The doc comment of the const-ref base() overload should say that the underlying iterator points to the last element in the current window.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment of the rvalue base() ...
null
seqan__seqan3__2946
seqan/seqan3
2,946
defect
fa65f03e912d24ba510f74293d64869ef8357861
def1183612a38a04e87203c860165f6a461bfd3e
[DOC, BUG] Clarify flag default value
seqan3 side of https://github.com/seqan/sharg-parser/issues/65
diff --git a/doc/howto/subcommand_argument_parser/subcommand_arg_parse.cpp b/doc/howto/subcommand_argument_parser/subcommand_arg_parse.cpp index 81542f2d65..40ce854b6d 100644 --- a/doc/howto/subcommand_argument_parser/subcommand_arg_parse.cpp +++ b/doc/howto/subcommand_argument_parser/subcommand_arg_parse.cpp @@ -84,6 ...
7
7
0
[{"id": "G0", "claim": "The continuation line of the long-identifiers bullet should be indented so the markdown list item renders correctly.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bullet about empty short/long ids should read \"may be ...
null
seqan__seqan3__2948
seqan/seqan3
2,948
defect
dc1ef8c6a4acfcee2c9686d3b1fbf38b977c9075
62a907e64fba1ec6ca81d48f81989546fe4e4dc9
[FIX] gcc12: owning_view and viewable_range
New viewable_range concept owning_view, which is quite similar to the persist_view :) See: * https://github.com/gcc-mirror/gcc/commit/5e1b17f038671df1a6580ece4cd58ef91cc1e234 * http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2415r2.html
diff --git a/include/seqan3/core/algorithm/detail/algorithm_executor_blocking.hpp b/include/seqan3/core/algorithm/detail/algorithm_executor_blocking.hpp index 90fe9334913..bdbd44789e7 100644 --- a/include/seqan3/core/algorithm/detail/algorithm_executor_blocking.hpp +++ b/include/seqan3/core/algorithm/detail/algorithm_e...
2
2
0
[{"id": "G0", "claim": "Pass the range on with std::move (e.g. into std::views::all) when constructing view_enforce_random_access from a viewable range, instead of leaving it as an lvalue.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use a named s...
null
seqan__seqan3__2963
seqan/seqan3
2,963
defect
e5c63f95004c67649ea0a6918348718852346e59
f2c97efbd1e3e86bb3846199f481d366aa3a689f
[FEATURE] Add seqan3::copyable_wrapper
This replaces `seqan3::semiregular_box` (implemented via range-v3) with `seqan3::copyable_wrapper` (independent of range-v3). In early C++20 days, views were required to be default_initialisable (i.e., `view{}`). For views that store a lambda, like `filter` or `transform`, this meant that the lambda would need to b...
diff --git a/include/seqan3/alignment/configuration/align_config_on_result.hpp b/include/seqan3/alignment/configuration/align_config_on_result.hpp index 31e6e13b075..9320a1c1991 100644 --- a/include/seqan3/alignment/configuration/align_config_on_result.hpp +++ b/include/seqan3/alignment/configuration/align_config_on_re...
7
5
3
[{"id": "G0", "claim": "The two call operators of copyable_wrapper should be declared conditionally noexcept.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The view_take_until deduction guide needs to take fun_t && so it matches the constructor's n...
null
seqan__seqan3__2973
seqan/seqan3
2,973
defect
bc1d0dad97054ba15c90d77960cb764f250f430e
226c6b74562e0407033cf0a6f5f53ca981b06b6e
[FEATURE] std::views::join_with
Implemented according to https://eel.is/c++draft/range.join.with Structure is similar to the zip_view.
diff --git a/include/seqan3/utility/views/detail/non_propagating_cache.hpp b/include/seqan3/utility/views/detail/non_propagating_cache.hpp new file mode 100644 index 00000000000..27c0fdbdcaf --- /dev/null +++ b/include/seqan3/utility/views/detail/non_propagating_cache.hpp @@ -0,0 +1,82 @@ +// --------------------------...
9
7
0
[{"id": "G0", "claim": "\"Fix\" — a bare request to fix the line the comment anchors to (the helper's `\\ingroup core` doc line), without stating what exactly is wrong.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A blank line should be inserted...
null
seqan__seqan3__2975
seqan/seqan3
2,975
defect
c54ee5523cb2eddf8561f27c018361e82b040b39
4538d82e19ca31798737798a317eb3aa97a83a66
[FEATURE] seqan3::views::chunk
Implemetation should work. Doc still has to be done.
diff --git a/include/seqan3/utility/views/chunk.hpp b/include/seqan3/utility/views/chunk.hpp index c67a9957f57..8478f73e2de 100644 --- a/include/seqan3/utility/views/chunk.hpp +++ b/include/seqan3/utility/views/chunk.hpp @@ -6,26 +6,776 @@ // ----------------------------------------------------------------------------...
18
15
3
[{"id": "G0", "claim": "The input iterator's pre-increment consumes the current chunk but never advances urng_begin, so the suggested fix sets urng_begin = std::move(it) before rebuilding current_chunk.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
seqan__seqan3__2981
seqan/seqan3
2,981
defect
a17f415bf874446f5ed672468de764fd90742e59
6accbea8924fdf414a786b56fab5ec49d0b6c6c9
[DOC] clarification how shapes are applied in kmer-hash
This adds some clarification on the direction of how shapes are applied when computing hashes. This intends to solve #2832
diff --git a/include/seqan3/search/views/kmer_hash.hpp b/include/seqan3/search/views/kmer_hash.hpp index cf20dc0080..f47bcc0648 100644 --- a/include/seqan3/search/views/kmer_hash.hpp +++ b/include/seqan3/search/views/kmer_hash.hpp @@ -774,6 +774,9 @@ namespace seqan3::views * * See the \link views views submodule d...
2
2
0
[{"id": "G0", "claim": "The newly added sentences in the doc comment and the snippet say \"The Shape is defined is from right to left\" — the duplicated \"is\" is a typo that should read \"The Shape is defined from right to left\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
seqan__seqan3__2996
seqan/seqan3
2,996
defect
7e96df4b5e999f74f51d1525641f822dd4679488
89c51977738c4e3a223923e241f1defac684c4cb
[MISC] cleanup compiler support
I checked which workarounds are still necessary and updated them. I had to do a small change in `views::type_reduce` such that we reduce it the way we actually want (we can only test this now with gcc12).
diff --git a/include/seqan3/alignment/matrix/detail/trace_iterator_base.hpp b/include/seqan3/alignment/matrix/detail/trace_iterator_base.hpp index 5975577b0e4..91b02196940 100644 --- a/include/seqan3/alignment/matrix/detail/trace_iterator_base.hpp +++ b/include/seqan3/alignment/matrix/detail/trace_iterator_base.hpp @@ ...
6
2
0
[{"id": "G0", "claim": "The SEQAN3_WORKAROUND_GCC_100139 condition may need to check the minor version too, since the comment says the fix landed in gcc 12.1 while `__GNUC__ < 12` already treats gcc 12.0 as fixed.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
seqan__seqan3__3026
seqan/seqan3
3,026
defect
44643d945c55e57718e4a50b7f2d6b87883b0862
10311556f3cf252ae008aa4d35aa065541b0d286
[DOC, FEATURE] Improve dna4 complement performance and add documentation.
(Aims to) Resolves #1970 - [x] Add a benchmark for computing the complement (and reverse complement). See https://github.com/kloetzl/libdna/blob/master/bench2/revcomp.cxx - [x] Replace the look-up table with an xor+subtraction when computing the complement in dna4 as proposed by @marehr see https://github.com/seqa...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cc27d2d084..13f4d0d096f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. * `seqan3::cigar` can now be assigned from `std::string_view` ([\#2966](https://github.com/seqan/seqan3/p...
1
1
1
[{"id": "G0", "claim": "The benchmark allocator's defaulted move constructor and move assignment should be deleted, because moving an allocator would leak the target's original buffers and then double-free forward and reverse when both objects go out of scope.", "category": "correctness", "verdict": "supported", "prior...
null
seqan__seqan3__3057
seqan/seqan3
3,057
defect
c20f219cc101aecc826f51416e11a3378e85f6cc
835fd8f0b1d52b056b3d93b5ce11d9f5b21e1564
[FEATURE] Add free function alignment_from_cigar and cigar_from_alignment.
When we remove the alignment field from the SAM file, we need to have a replacement in place to get from a CIGAR string, read from file, to an alignment. I copied over the functionality from IO into a free function in the `/alignment` module for now. We should discuss where and how we will provide this feature. ...
diff --git a/include/seqan3/alignment/cigar_conversion.hpp b/include/seqan3/alignment/cigar_conversion.hpp new file mode 100644 index 00000000000..457a1eced74 --- /dev/null +++ b/include/seqan3/alignment/cigar_conversion.hpp @@ -0,0 +1,376 @@ +// -------------------------------------------------------------------------...
53
49
10
[{"id": "G0", "claim": "The snippet's variable `read` should be renamed to `query` to match the final API naming.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The snippet's call should pass `query` instead of `read`, matching the renamed paramet...
null
seqan__seqan3__3062
seqan/seqan3
3,062
defect
e963e66b194b306265a0ef369343b5e2db72a946
00ba776752fb61c3becf7b952dc881459e10673d
[TEST] Remove seqan3::test::tmp_filename in favor of tmp_directory.
Superseeds https://github.com/seqan/seqan3/pull/2753 because of staleness and because I had some time
diff --git a/doc/howto/use_cereal/load.hpp b/doc/howto/use_cereal/load.hpp index e750e3aee1d..66deb768b3d 100644 --- a/doc/howto/use_cereal/load.hpp +++ b/doc/howto/use_cereal/load.hpp @@ -2,7 +2,7 @@ #include <vector> #include <seqan3/core/debug_stream.hpp> -#include <seqan3/test/tmp_filename.hpp> +#include <seqan...
1
1
1
[{"id": "G0", "claim": "Converting compression_by_filename_impl to take a path dropped the `fout.options.fasta_blank_before_id = true;` option line, and the option should be kept when the constructor call is changed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
seqan__seqan3__3081
seqan/seqan3
3,081
defect
c0cea0d2878e917379f88c1eead712b0c63db3e8
0a7cd24b90d56916ac48e07ffbcc00448c4855ce
[FIX] Write BAM header on sam_file deconstruction if not written before
Resolves #2497 Now, just opening a `seqan3::sam_file_output`, e.g. : ```cpp seqan3::sam_file_output fout{"test.sam"}; ``` will trigger writing a minimal header on deconstruction. This also has the implication that ``` { seqan3::sam_file_output fout{"test.bam"}; } // Error: BAM file cannot writ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 58f33486e5a..e90f3d2b0b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,10 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. ## Notable Bug-fixes +#### I/O +* Empty SAM/BAM files must at least write a header, s.t. the file is v...
10
10
1
[{"id": "G0", "claim": "The copy_n that writes the BAM magic should carry a comment noting that it does not copy the null terminator.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SAM header string and its length should be read from std::ostr...
null
seqan__seqan3__3082
seqan/seqan3
3,082
defect
92164e6b73981cefc253e155798ce9922144f982
c16dc5ed8762ae5e191d43c4cbad856ef14c165e
[FEATURE] IBF decompression
<!-- Please see https://github.com/seqan/seqan3/blob/master/CONTRIBUTING.md for a general overview. Please allow edits from maintainers: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork#enabling-repository-mai...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6a66f036..7934f31d1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,11 @@ If possible, provide tooling that performs the changes, e.g. a shell-script. * Char literals returning std::vector are now constexpr if supported by the compiler ([\#3073](https:...
2
2
0
[{"id": "G0", "claim": "The new constructor's \\brief should say the uncompressed Interleaved Bloom Filter is constructed from a compressed one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \\attention note under the new constructor could ma...
null
seqan__seqan3__3106
seqan/seqan3
3,106
defect
89932c074e0ed594e952344ad0d452ca7e2610f3
5114809c53eb7b0443f21ab389032e17223840da
Io bam performance
:crossed_fingers: ### SAM Benchmark a small SAM file (`/group/ag_abi/gene/benchmark-files/io-test.bam` as SAM): Before: `Elapsed (wall clock) time (h:mm:ss or m:ss): 0:10.33` After: `Elapsed (wall clock) time (h:mm:ss or m:ss): 0:07.60` Seqan2: `Elapsed (wall clock) time (h:mm:ss or m:ss): 0:06.19` ### BA...
diff --git a/include/seqan3/io/sam_file/detail/cigar.hpp b/include/seqan3/io/sam_file/detail/cigar.hpp index 54b3980116b..fb3b93bc48a 100644 --- a/include/seqan3/io/sam_file/detail/cigar.hpp +++ b/include/seqan3/io/sam_file/detail/cigar.hpp @@ -78,46 +78,39 @@ inline void update_alignment_lengths(int32_t & ref_length, ...
18
17
0
[{"id": "G0", "claim": "The constexpr guard in read_forward_range_field should use std::assignable_from instead of std::constructible_from, since the branch assigns `target = str`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "read_forward_range_field o...
null
seqan__seqan3__3111
seqan/seqan3
3,111
defect
cdff3ddfd26367c0fe7bdc1bacbbcbfd30e9264c
ed9aa7d6c25c4b5aa9b7fd94a09d9e837947e7cc
[DOC] Improve search module doc
Improves the landing page and the `seqan3::seach` documentation.
diff --git a/include/seqan3/search/all.hpp b/include/seqan3/search/all.hpp index bf303734671..de2a776cbb0 100644 --- a/include/seqan3/search/all.hpp +++ b/include/seqan3/search/all.hpp @@ -12,9 +12,9 @@ /*!\defgroup search Search * \brief Data structures and approximate string search algorithms for large collectio...
6
5
2
[{"id": "G0", "claim": "The new search documentation contains several spelling and grammar errors in sentences the pull request adds, and the reviewer provided concrete replacement lines for each of them.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
seqan__seqan3__3248
seqan/seqan3
3,248
defect
fee3fb8e5976b455e848dd68c57f64fd3f67c3c2
3df554ffcabda795fd67c4b685256fbd92bfb640
[MISC] Refine unknown tag handling (HD/PG)
<!-- Please see https://github.com/seqan/seqan3/blob/main/CONTRIBUTING.md for a general overview. Please allow edits from maintainers: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork#enabling-repository-maint...
diff --git a/include/seqan3/io/sam_file/detail/format_sam_base.hpp b/include/seqan3/io/sam_file/detail/format_sam_base.hpp index 11ac5d42da0..8e7247788fa 100644 --- a/include/seqan3/io/sam_file/detail/format_sam_base.hpp +++ b/include/seqan3/io/sam_file/detail/format_sam_base.hpp @@ -341,13 +341,17 @@ inline void forma...
2
2
0
[{"id": "G0", "claim": "The raw_tag parameter of the new consume_unsupported_tag_and_print_warning lambda should be declared const to prevent accidental modification.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Everything except the little sa...
null
seqan__seqan3__3254
seqan/seqan3
3,254
defect
bcc142e425fd6d201c207827e4bec2a072c47d06
17456a96a2d3ae34f66189a10aff4d1299008f7f
Refactor selection of Myers' bitparallel edit distance algorithm.
This PR fixes #3253 by: 1. adding a new dedicated scoring scheme for enabling hamming distance, which is agnostic to the alphabet type, 2. switching to use this hamming scoring scheme in the edit scheme alignment configuration and test for it during the alignment configuration. Due to these changes, users can select t...
diff --git a/doc/tutorial/08_pairwise_alignment/configurations.cpp b/doc/tutorial/08_pairwise_alignment/configurations.cpp index 7cc13eba42..96bd24c72c 100644 --- a/doc/tutorial/08_pairwise_alignment/configurations.cpp +++ b/doc/tutorial/08_pairwise_alignment/configurations.cpp @@ -8,6 +8,7 @@ //! [include_scoring_s...
14
12
0
[{"id": "G0", "claim": "The score() requires clause should drop the std::remove_reference_t wrappers and constrain with std::equality_comparable_with<alph1_t, alph2_t> directly, since the deduced template arguments are lvalue types anyway.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
seqan__seqan3__3256
seqan/seqan3
3,256
defect
21c7d04fb74151d6a01e74203eff0712d42ed190
88e8642aab0839ef422901d010ec6729b6642ec0
[FEATURE] Accept user-defined tags
Resolves #3251
diff --git a/doc/cookbook/index.md b/doc/cookbook/index.md index c5d533e68d6..6122ea2a791 100644 --- a/doc/cookbook/index.md +++ b/doc/cookbook/index.md @@ -439,7 +439,6 @@ Search for keywords with `Strg + F`. \include test/snippet/io/sam_file/sam_file_input_front.cpp \include test/snippet/io/sam_file/sam_file_input_...
3
2
0
[{"id": "G0", "claim": "The class documentation of sam_file_input_options still says the options type defines various option members while this change leaves the struct empty, and the reviewer asks that the documentation be updated to say that there are currently no options and the struct exists for possible future ext...
null
seqan__seqan3__3268
seqan/seqan3
3,268
defect
ca4d668390e35b4045ccd02d070927f8178ed2ce
2d9809e36bc7884c52b326b41a2d26b9ac9400a1
Fix/issue_3264
Further constraints the conversion constructors of the nucleotide and aminoacid base alphabet types to only consider conversion if all requirements are fulfilled. This is now represented by the specific concept `convertable_to_through_char_representation`. Through this proxy types will not be converted through their ch...
diff --git a/include/seqan3/alphabet/aminoacid/aminoacid_base.hpp b/include/seqan3/alphabet/aminoacid/aminoacid_base.hpp index e2414d42a2..2ac933c069 100644 --- a/include/seqan3/alphabet/aminoacid/aminoacid_base.hpp +++ b/include/seqan3/alphabet/aminoacid/aminoacid_base.hpp @@ -11,6 +11,7 @@ #include <seqan3/alphabe...
2
1
0
[{"id": "G0", "claim": "Remove the `#include <vector>` added to test/unit/alphabet/container/bitpacked_sequence_test.cpp because it is not needed there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the `#include <vector>` at the top of ...
null
seqan__seqan3__3269
seqan/seqan3
3,269
defect
ca4d668390e35b4045ccd02d070927f8178ed2ce
0f0ec9408229e64beb818d1258721fa304f246ea
Fixes #3266: Incorrect begin/end of alignment for banded alignment
In case the sequences are sliced by cutting off a prefix of the original seuence due to the band configuration, the relative positions of the sliced sequences was reported inside of the alignment result. However, this slicing happens only internally and thus the positions reported should correspond to the ones of the o...
diff --git a/include/seqan3/alignment/pairwise/alignment_algorithm.hpp b/include/seqan3/alignment/pairwise/alignment_algorithm.hpp index c5c5718ddf..898be56550 100644 --- a/include/seqan3/alignment/pairwise/alignment_algorithm.hpp +++ b/include/seqan3/alignment/pairwise/alignment_algorithm.hpp @@ -619,7 +619,11 @@ clas...
4
3
0
[{"id": "G0", "claim": "The unused #include <seqan3/core/debug_stream.hpp> in test/unit/alignment/pairwise/global_affine_banded_test.cpp should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment of to_original_sequence1_p...
null
seqan__seqan3__3307
seqan/seqan3
3,307
defect
6f38aaccf8e87767a4de22994c886d581393bdb6
4234b941f4e4d9f83f42dcb969a7a1d78ead5c61
[FIX] CodeQL reports
These are all `Comparison of narrow type with wide type in loop condition`
diff --git a/include/seqan3/search/detail/search_scheme_algorithm.hpp b/include/seqan3/search/detail/search_scheme_algorithm.hpp index 7084b41dc9a..68f794d8c22 100644 --- a/include/seqan3/search/detail/search_scheme_algorithm.hpp +++ b/include/seqan3/search/detail/search_scheme_algorithm.hpp @@ -244,7 +244,7 @@ inline ...
1
1
1
[{"id": "G0", "claim": "In the floor_log2 and ceil_log2 test loops the new bound `std::min<size_t>(start / 2u, max_iterations)` is wrong — `end` should be something like `std::min(start, max_iterations) + start`, i.e. start doubled capped at max_iterations past start.", "category": "correctness", "verdict": "supported"...
null
seqan__seqan3__3321
seqan/seqan3
3,321
defect
5c60129e860e2dd18cf5ed1e2caaee0e9bd9041c
003e03a6f8dba0a83dd5a6332f84222323968945
[INFRA] Sanitizer CI
<!-- Please see https://github.com/seqan/seqan3/blob/main/CONTRIBUTING.md for a general overview. Please allow edits from maintainers: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork#enabling-repository-maint...
diff --git a/.clang-format b/.clang-format index da256fbeb2..9f7bebb34a 100644 --- a/.clang-format +++ b/.clang-format @@ -274,4 +274,5 @@ WhitespaceSensitiveMacros: - STRINGIZE - SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY_START - SEQAN3_WORKAROUND_GCC_BOGUS_MEMCPY_STOP + - reduction ... diff --git a/.github/workflo...
1
1
0
[{"id": "G0", "claim": "The reviewer asked what `container: image: ${{ matrix.image || '' }}` means, so the non-obvious fallback-to-no-container construct in ci_sanitizer.yml should be explained.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
seqan__seqan3__759
seqan/seqan3
759
defect
4b72296483b97e9936a836c05b03acb1f2cb711b
8c29ab7d06e796f28155fc6dbc61493867753146
[FIX] argument parsing of option with empty long identifier.
The test I added formerly would throw a `cast_conversion` error because it would recognize `--` as the long identifier for the `i` option and then parse `unknown` as the option value.
diff --git a/include/seqan3/argument_parser/detail/format_parse.hpp b/include/seqan3/argument_parser/detail/format_parse.hpp index 42b6b261259..af667e51353 100644 --- a/include/seqan3/argument_parser/detail/format_parse.hpp +++ b/include/seqan3/argument_parser/detail/format_parse.hpp @@ -224,6 +224,10 @@ class format_p...
2
2
1
[{"id": "G0", "claim": "The new test uses the misspelled option name '--unkown' where it should read '--unknown'.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added empty-identifier guard in find_option_id is compiled only when id_type is std::str...
null
sequelize__sequelize-typescript__893
sequelize/sequelize-typescript
893
defect
6455593c6600e26993fa78845b707974e3b9197b
73fbee55d18022a1607074a183f56496fab6f717
Infer bigint data type
This PR infers the data type of `bigint` to `DataTypes.BIGINT`. Previously, using just `@Column` on a bigint field produced this error: ` Specified type of property 'id' cannot be automatically resolved to a sequelize data type. Please define the data type manually` This will lead to cleaner code as the dataTyp...
diff --git a/src/sequelize/data-type/data-type-service.ts b/src/sequelize/data-type/data-type-service.ts index 00a2190c..5f15bc2f 100644 --- a/src/sequelize/data-type/data-type-service.ts +++ b/src/sequelize/data-type/data-type-service.ts @@ -18,6 +18,8 @@ export function inferDataType(designType: any): DataTypeAbstrac...
1
1
0
[{"id": "G0", "claim": "The Type inference table in the README should be updated to document the bigint-to-BIGINT inference this pull request adds.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sequelize__sequelize__13411
sequelize/sequelize
13,411
defect
56bb1d6ef9827f604d7bcef945abb7e213f2322d
ee6e62beb719df8e972bd45c55015bfe845998ca
feat(postgres, sqlite): add conflictWhere option to upsert
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. If your PR only contains changes to documentation, you may skip the template below. --> ### Pull Request check-list _Please make sure to...
diff --git a/lib/dialects/abstract/index.js b/lib/dialects/abstract/index.js index 57d681fac84b..2e3ec173bab6 100644 --- a/lib/dialects/abstract/index.js +++ b/lib/dialects/abstract/index.js @@ -39,7 +39,8 @@ AbstractDialect.prototype.supports = { inserts: { ignoreDuplicates: '', /* dialect specific words for I...
6
5
1
[{"id": "G0", "claim": "The `async` keyword on `beforeEach(async () => Users.sync({ force: true }))` is unnecessary because nothing in the arrow function awaits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should consider logging a war...
null
sequelize__sequelize__17157
sequelize/sequelize
17,157
defect
20548020091d11268872f19c8601751e8ba498d7
d1d77f3a363fd44f8b984d6cef43cd568d4a4d14
fix: unify returning queries
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/dialects/db2/query-interface.js b/packages/core/src/dialects/db2/query-interface.js index d91975849392..d359f5a2736d 100644 --- a/packages/core/src/dialects/db2/query-interface.js +++ b/packages/core/src/dialects/db2/query-interface.js @@ -78,9 +78,7 @@ export class Db2QueryInterface exte...
1
1
0
[{"id": "G0", "claim": "In the SQLite query generator, options.mapToModel should be set unconditionally when returning is used, instead of only inside the dialect.supports.returnValues check (the suggested simplification).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
sequelize__sequelize__17158
sequelize/sequelize
17,158
defect
356239e87cf5516ca5d59eb11aea71a4ed4c3b55
fee81fd7672ba7dfc4f03d520ea8c2350f369e25
fix: make `BaseSqlExpression` a unique class
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/expression-builders/association-path.ts b/packages/core/src/expression-builders/association-path.ts index e5135aabc77a..4c274c52cd08 100644 --- a/packages/core/src/expression-builders/association-path.ts +++ b/packages/core/src/expression-builders/association-path.ts @@ -1,7 +1,7 @@ impo...
1
1
0
[{"id": "G0", "claim": "Making the brand private/protected is not enough to make the BaseSqlExpression subclasses unique, so invalid values such as a RegExp or a number are still accepted by sequelize.query without a type error, and the classes should instead get a private symbol (like the DataTypes) in this PR.", "cat...
null
sequelize__sequelize__17197
sequelize/sequelize
17,197
defect
05f0349dd7f98bfa9896ae384330a97a69331a13
629a50050bdc9e92c041c048eb9c9f14a13d325d
feat(db2): move db2 to the `@sequelize/db2` package
## Goal of the PR Related issue: #13722 Related PR: #17190 This PR moves the Db2 Dialect to the `@sequelize/db2` package. ## Relevant impacts - This package pre-installs the necessary db2-specific dependencies: `ibm_db`, `@types/ibm_db`. Users won't need to install these packages anymore. This gives us co...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f99e0e787fdc..585e993ae563 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,7 +94,7 @@ jobs: run: yarn lerna run test-unit-sqlite --scope=@sequelize/core - name: Unit tests (mssql) run: yarn lerna ...
7
7
2
[{"id": "G0", "claim": "The removal of `.utc(false)` in toBindableValue looks unneeded since the default is local time, and it was only done because the UTC plugin was not enabled in this package — the author should decide whether to enable the UTC plugin here (as core does) or only in core.", "category": "correctness"...
null
sequelize__sequelize__17202
sequelize/sequelize
17,202
defect
46ea159306c55c7b3c02ac0ba24a2c0dd3dff4d9
069b8633896201c04a6208cac69290a4f072557d
feat(mysql)!: move mysql to the `@sequelize/mysql` package
## Goal of the PR Related issue: #13722 Related PR: #17190 This PR moves the MySql Dialect to the `@sequelize/mysql` package. ## Relevant impacts - This package pre-installs the necessary mysql-specific dependency `mysql`. Users won't need to install the additional packages anymore. This gives us control ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd3504b6003c..02d3e46fdba9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: run: yarn lerna run test-unit --scope=@sequelize/utils - name: Unit tests (core - mariadb) run: yarn ler...
2
1
1
[{"id": "G0", "claim": "The new packages/mysql/src/index.mjs re-exports MySqlConnection, which is an interface, as a runtime value — the reviewer asks whether this export should be there at all.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "WikiRik asks...
null
sequelize__sequelize__17206
sequelize/sequelize
17,206
defect
ecd9636dc43ec94b06d0000e3fc48ffdee30d301
4bf5e6aa193886d45f707c30c29cec368509b6e1
feat(mssql)!: move mssql to the `@sequelize/mssql` package
## Goal of the PR Related issue: #13722 Related PR: #17190 This PR moves the MsSql Dialect to the `@sequelize/mssql` package. ## Relevant impacts - This package pre-installs the necessary mssql-specific dependency `mssql`. Users won't need to install the additional packages anymore. This gives us control ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02d3e46fdba9..173c13be42e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,8 +92,10 @@ jobs: run: yarn lerna run test-unit --scope=@sequelize/postgres - name: Unit tests (sqlite) run: yarn lerna r...
6
5
2
[{"id": "G0", "claim": "The mssql connection-manager tests were skipped because `lib` became inaccessible; the test that was added for a bug should ideally be kept by making `lib` a TypeScript private property that can still be stubbed, and the skipped tests resolved rather than left skipped.", "category": "testing", "...
null
sequelize__sequelize__17219
sequelize/sequelize
17,219
defect
a85716551ff73a485bbf2383f27b7846c44d8541
5ad6177059d46763e581925d21b55ec59fb1dbb0
feat: re-add the ability to override the connector library
## Description of Changes This PR re-introduces the ability to override the connector library. To avoid any confusion, each option is specific to the dialect being used, and the name reflects the name of the library that is being replaced. Using `dialectModule` or `dialectModulePath` now throws This PR also...
diff --git a/.husky/pre-commit b/.husky/pre-commit index 00e160b325f0..3ed33d81de5a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1,2 @@ yarn lint-staged --concurrent false yarn delete-changelog -git add . diff --git a/dev/delete-changelog.mjs b/dev/delete-changelog.mjs index c7f2c0f843ff..c60760c10...
6
6
2
[{"id": "G0", "claim": "dev/delete-changelog.mjs builds the shell command `git add ${changelogPath}` from an uncontrolled path, which the CodeQL scanner flags as a shell-command-injection risk.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "All the dia...
null
sequelize__sequelize__17252
sequelize/sequelize
17,252
defect
1ffa3e05af85adc5f6fdf9ea40c894818f0bd1aa
87f89b42dd2f5bc0370fedf1a5e472d989777780
fix: parse the `url` option based on the dialect
## Description of Changes <!-- Please provide a description of the change here. --> The URL parsing is handled by the dialect itself, so it can correctly map each URL property to their own connection options, specify which search parameters are allowed and how they should be parsed. ## List of Breaking Changes...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78897a0721ea..163d9e62f031 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,8 +84,12 @@ jobs: run: yarn lerna run test-unit --scope=@sequelize/utils - name: Unit tests (core - mariadb) run: yarn le...
5
5
1
[{"id": "G0", "claim": "The CI step 'Unit tests (mysql package)' runs `yarn lerna run test-unit --scope=@sequelize/mysql` but packages/mysql/package.json defines no test-unit script, so shouldn't this fail / not run any tests?", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
sequelize__sequelize__17262
sequelize/sequelize
17,262
defect
bee1a5d571e540fb7ff555f5c69c12e47756f164
22c62543b51d5f82e63e3870bb82721b891e8c0f
feat(cli): add `seed generate` command
## Description of Changes <!-- Please provide a description of the change here. --> This PR adds the command `seed generate` to the CLI. This command can generate the seed in 4 formats; `sql`, `typescript` (with `import`), `cjs` or `esm`. This command acts the same way as `migration generate`, added in #17195 ...
diff --git a/.eslintrc.js b/.eslintrc.js index 636989840484..f2a2ef2248a4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -211,6 +211,7 @@ module.exports = { 'packages/**/skeletons/**/*', '.typedoc-build', 'packages/cli/migrations/**/*', + 'packages/cli/seeds/**/*', ], env: { node: true, di...
2
2
0
[{"id": "G0", "claim": "Remove `types` from the accepted commit scopes in .github/workflows/pr-title.yml, as it no longer makes sense with the monorepo.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `--name` example in generate.ts should re...
null
sequelize__sequelize__17393
sequelize/sequelize
17,393
defect
aa6f2322705a98920f590573abd06e5f4c0dd8dc
a619232455ad58c285faa7c17a74e617c5608ae4
feat: findByPk composite key support
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/model-typescript.ts b/packages/core/src/model-typescript.ts index eb65a9fbb3d2..b56b71524824 100644 --- a/packages/core/src/model-typescript.ts +++ b/packages/core/src/model-typescript.ts @@ -1,4 +1,6 @@ import type { PartialBy } from '@sequelize/utils'; +import cloneDeep from 'lodash/cl...
9
5
1
[{"id": "G0", "claim": "Update the FindByPkOptions type instead of opening a PR on the docs repo — updating the type should be enough for the docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Considering the size of the method, move findByPk ...
null
sequelize__sequelize__17626
sequelize/sequelize
17,626
defect
9c0ab2071fbbc3e6a94d536012226140d944da03
14d2b7a3e443a0244fabd6bc750d42b1a07fc6aa
fix(snowflake): automatically fetch last inserted row ID when using AUTOINCREMENT pk
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/abstract-dialect/query-interface.js b/packages/core/src/abstract-dialect/query-interface.js index f46653e46f85..8951c31912ae 100644 --- a/packages/core/src/abstract-dialect/query-interface.js +++ b/packages/core/src/abstract-dialect/query-interface.js @@ -85,6 +85,9 @@ export class Abstra...
2
2
0
[{"id": "G0", "claim": "The ensureSequences parameters are typed as `any` although types for table, attributes and options exist that could be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The call to ensureSequences should not pa...
null
sequelize__sequelize__17728
sequelize/sequelize
17,728
defect
e914861c084ef0ed8f12ca7b59be4965326e9641
6774d47c3354fe861603fddc11cc6507e11da65f
meta: update dependency typescript to v5.8.2
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typescript](https://www.typescriptlang.org/) ([source](https://redirect.github.com/microsoft/TypeScript)) | [`5.4.5` -> `5.8.2`](https://renovatebot.com/diffs/npm/typescript/5.4.5/5.8.2) | ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a5974c57d61..4560e3126cea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,7 +156,7 @@ jobs: strategy: fail-fast: false matrix: - ts-version: ['5.1', '5.2', '5.3', '5.4'] + ts-version: ['...
1
1
0
[{"id": "G0", "claim": "The PR removes typedoc-plugin-carbon-ads, which earns the project money from Carbon ads, so they might need to make a fork of it to keep the revenue.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sequelize__sequelize__17751
sequelize/sequelize
17,751
defect
c8861c509e121ad01f12e7b854981a6fcc55a3b0
bcdc9f09df5c7ed36a53380e6f22874094d601c3
feat(core): count grouped rows
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/model.d.ts b/packages/core/src/model.d.ts index 1fa16386c6a9..5578dfc2c190 100644 --- a/packages/core/src/model.d.ts +++ b/packages/core/src/model.d.ts @@ -985,12 +985,21 @@ export interface CountOptions<TAttributes = any> * Column on which COUNT() should be applied */ col?: st...
10
8
4
[{"id": "G0", "claim": "The tests in this pull request were not merged properly and need to be resolved.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "There are still outstanding issues with the type testing that need to be looked into and fixed.", "categ...
null
sequelize__sequelize__17832
sequelize/sequelize
17,832
defect
320e7f21bfc65e9e40059c64eaa90a04dd5fc7c2
9f44695ddde89a4f13215094ba0e2f0b3fd3621e
feat(core): Add support for UUID v7
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/abstract-dialect/data-types.ts b/packages/core/src/abstract-dialect/data-types.ts index 26975feafa37..5dc49592f1e5 100644 --- a/packages/core/src/abstract-dialect/data-types.ts +++ b/packages/core/src/abstract-dialect/data-types.ts @@ -1966,7 +1966,7 @@ export class RANGE< } export in...
2
1
0
[{"id": "G0", "claim": "The PR adds UUID v7 support to the deprecated DataTypes definitions (a new `DataTypes.UUIDV7` class marked @deprecated), and the maintainer would prefer that deprecated functionality not be added.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
sequelize__sequelize__18117
sequelize/sequelize
18,117
defect
60b75189751e534b6853a56513df3453feb045b1
422d86269f0a2989ddf5c4482fc2b542d7b52f55
fix(sqlite3): uprev to @vscode/sqlite3 and fix CVEs
## Pull Request Checklist - [x] Have you added new tests to prevent regressions? - N/A - [x] If a documentation update is necessary, have you opened a PR to [the documentation repository](https://github.com/sequelize/website/)? - Anyone ToDo later if change accepted - [x] Did you update the typescript typings a...
diff --git a/packages/core/test/integration/error.test.ts b/packages/core/test/integration/error.test.ts index f3df72335d8d..16780bd135d5 100644 --- a/packages/core/test/integration/error.test.ts +++ b/packages/core/test/integration/error.test.ts @@ -597,7 +597,7 @@ describe(getTestDialectTeaser('Sequelize Errors'), ()...
2
2
1
[{"id": "G0", "claim": "Add to the repo/CI whatever is needed so that the yarn patch disabling Spectre mitigation for @vscode/sqlite3 is not needed.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment referring to this PR alongside the RegExp-...
null
sequelize__sequelize__18137
sequelize/sequelize
18,137
defect
adf26ab58ea948ac540c576d903efcf7ed2658e5
45f5990672d6e16a010b2875ed15f66918db99d5
fix(utils): Remove dottie in favor of undot. update undot with security enhancements.
This pull request adds important security enhancement to the core package `undot` by replacing the `dottie` dependency with `undot` for handling nested object paths, and by implementing the same protections found in the new `dottie` build against prototype pollution attacks. The changes affect both the implementation...
diff --git a/packages/core/package.json b/packages/core/package.json index 6ba148f10f4f..2abd10ca6102 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -55,7 +55,6 @@ "bnf-parser": "^3.1.6", "dayjs": "^1.11.19", "debug": "^4.4.3", - "dottie": "^2.0.6", "fast-glob": "^3.3...
2
2
1
[{"id": "G0", "claim": "In Model#set's JSON nested-key branch, tokenizePath(key) is called twice for the same key (once for getByPathArray and once for setByPathArray); tokenize once into a local variable and reuse it to avoid duplicate parsing work in this hot path.", "category": "performance", "verdict": "supported",...
null
sequelize__sequelize__18143
sequelize/sequelize
18,143
defect
9a972bb095682e70a2fcac2b976b0733fec98c50
69517b83ec2f67fbb49473ad1be532a35cc0f1e8
fix(core): Model#equals always returns true for instances of different models
## Summary Fixes #18142. - `Model#equals` was comparing `this.modelDefinition` against itself (copy-paste bug on line 4518), so the model-type guard was always a no-op - Two instances of completely different models with the same primary key would incorrectly be considered equal - Fix: change `const otherModelDefiniti...
diff --git a/packages/core/src/model.js b/packages/core/src/model.js index 79457fc3c95b..e5a7c593184a 100644 --- a/packages/core/src/model.js +++ b/packages/core/src/model.js @@ -4515,7 +4515,7 @@ Instead of specifying a Model, either: } const modelDefinition = this.modelDefinition; - const otherModelDef...
2
2
0
[{"id": "G0", "claim": "New test files should be written in TypeScript rather than JavaScript.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Remove the four-line Regression comment block above the cross-model test case.", "category": "maintaina...
null
sequelize__sequelize__18151
sequelize/sequelize
18,151
defect
81a203251315fb82fba31e7019431d52d8b59ca9
7353f81a0be010ab67852022281eefc9e8ba37fb
feat(postgres): replace pg-hstore with inline hstore parser
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [X] Have you added new tests to preven...
diff --git a/packages/postgres/package.json b/packages/postgres/package.json index a7f570f7e4b0..7f3e92cec4e2 100644 --- a/packages/postgres/package.json +++ b/packages/postgres/package.json @@ -42,8 +42,7 @@ "@types/pg": "^8.11.14", "lodash": "^4.17.23", "pg": "^8.15.6", - "pg-hstore": "^2.3.4", - ...
5
4
2
[{"id": "G0", "claim": "The HSTORE_PAIR_REGEX added by the pull request may cause exponential backtracking (ReDoS) on strings starting with '\"' and containing many repetitions of '\\\\'.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The parser helper...
null
sequelize__sequelize__18185
sequelize/sequelize
18,185
defect
df8e8fcfd5f491cb3915eb78f558a95772004db0
3e8be96067022d860655666d4bfd07d45d65b3fa
feat: add Node 24 support, drop Node 18
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [ ] Have you added new tests to preven...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94dfeed9f7b5..3e3707a3dffb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18, 20] + node-version: [20, 22, 24] na...
2
2
1
[{"id": "G0", "claim": "Update the where.test.ts Op.in error expectation to use TypeError with production's inspect options instead of Error with default util.inspect(), so the test stays in sync with production behavior.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
sequelize__sequelize__18203
sequelize/sequelize
18,203
defect
a39e9a545c94b78d027fa14f7308408881ea4cdc
dffbcac406bdae2409c488011a0b79a54349e6ef
feat(core): add `sql.random`, improve `Order` typing
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [x] Have you added new tests to preven...
diff --git a/packages/core/src/abstract-dialect/dialect.ts b/packages/core/src/abstract-dialect/dialect.ts index 286d3966affb..3492af3b52d5 100644 --- a/packages/core/src/abstract-dialect/dialect.ts +++ b/packages/core/src/abstract-dialect/dialect.ts @@ -243,6 +243,8 @@ export type DialectSupports = { uuidV4Generati...
5
5
3
[{"id": "G0", "claim": "Six dialects (DB2, IBMi, MariaDB, MSSQL, MySQL, Oracle) lack `getRandomFunctionCall()` overrides and fall back to the base `RAND()`, which is the wrong syntax for Oracle (it uses `DBMS_RANDOM.VALUE`), so the Oracle query generator and its test expectation must be fixed.", "category": "correctnes...
null
sequelize__sequelize__18204
sequelize/sequelize
18,204
defect
1547f9468221ce72ae27ed4144ad7cf6ca1c5cbb
ec51dccc95468c41cc480bb0ca89b9eb0b7029fc
feat(core): Drop the ability to specify the dialect as a string
<!-- Thanks for wanting to fix something on Sequelize - we already love you! Please fill in the template below. If unsure about something, just do as best as you're able. --> ## Pull Request Checklist <!-- Please make sure to review and check all of these items: --> - [ ] Have you added new tests to preven...
diff --git a/packages/core/src/abstract-dialect/dialect.ts b/packages/core/src/abstract-dialect/dialect.ts index 088880d5d4f7..f07bff2f512b 100644 --- a/packages/core/src/abstract-dialect/dialect.ts +++ b/packages/core/src/abstract-dialect/dialect.ts @@ -2,7 +2,7 @@ import { EMPTY_OBJECT, freezeDeep, getImmutablePojo, ...
11
7
2
[{"id": "G0", "claim": "Use the repository's own inspect utility from the utils package instead of NodeUtil.inspect when formatting the unnamed index field error, to make non-Node environments easier later.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
serai-dex__serai__189
serai-dex/serai
189
defect
873d27685a5879fa7521f61a1abeec8edc835d84
034334b306f17f5640cd464eb034a702b87cc0d9
support add/read multiple arbitrary tx data
- support to add multiple data fields into tx - support to read multiple data fields from tx - add tests
diff --git a/coins/monero/src/wallet/extra.rs b/coins/monero/src/wallet/extra.rs index fdc2ef9e1..dcbbda511 100644 --- a/coins/monero/src/wallet/extra.rs +++ b/coins/monero/src/wallet/extra.rs @@ -131,8 +131,9 @@ impl Extra { None } - pub(crate) fn data(&self) -> Option<Vec<u8>> { + pub(crate) fn data(&self...
6
5
1
[{"id": "G0", "claim": "The number of arbitrary data segments is serialized as a single byte (u8::try_from(len).unwrap()), which cannot represent more than 255 segments and panics beyond that; the count should be written and read as a u32.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ...
null
serai-dex__serai__224
serai-dex/serai
224
defect
375887bb29819bd17f47866538c0b61bd16e4c87
0e643fbbd1f1d8a6c0283f3e8bda03ff48a75e37
Monerolib Improvements
- Fix Monero Wallet RPC payment id compatibilty - add tests for Monero wallet RPC compatibility
diff --git a/.github/actions/monero-wallet-rpc/action.yml b/.github/actions/monero-wallet-rpc/action.yml new file mode 100644 index 000000000..db99c0210 --- /dev/null +++ b/.github/actions/monero-wallet-rpc/action.yml @@ -0,0 +1,44 @@ +name: monero-wallet-rpc +description: Spawns a Monero Wallet RPC Client + +inputs: +...
13
12
4
[{"id": "G0", "claim": "The ViewPair::view() getter should not expose the private view key again; it should return its public key via the basepoint table.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Pinning monero-rpc to \"0.3.2\" in dev-dependencies ...
null
serai-dex__serai__301
serai-dex/serai
301
defect
1aa293cc4ad373514c1bfad69eac1d33cf5f9dad
483d8e5dbd93979bfc0a3d663ecd1f23f7d93042
monero-serai: fee calculation parity with Monero's wallet2
The goal of this PR is to ensure `monero-serai` constructs transactions using fees that are indistinguishable from Monero's wallet2. This PR accomplishes this goal to the best of my knowledge. I haven't tested it with mainnet yet but plan on doing so (while working on the decoy selection algorithm next). The core in...
diff --git a/coins/monero/src/ringct/bulletproofs/mod.rs b/coins/monero/src/ringct/bulletproofs/mod.rs index fdddca2ae..f8cd01d0a 100644 --- a/coins/monero/src/ringct/bulletproofs/mod.rs +++ b/coins/monero/src/ringct/bulletproofs/mod.rs @@ -35,23 +35,38 @@ pub enum Bulletproofs { impl Bulletproofs { pub(crate) fn...
23
22
5
[{"id": "G0", "claim": "The debug_assert that the fee response has an entry for the priority index lets a malicious node crash any application built with debug assertions, so get_fee should return an error instead since this is not an invariant.", "category": "security", "verdict": "supported", "priority": "P1", "scope...
null
serai-dex__serai__316
serai-dex/serai
316
defect
acf2469dd84e1804b15770cc90438df506bc95ec
0eb4e2a57b287c555e1c52eb376fbe7c4543ce0a
Improve batch handling
fixes https://github.com/serai-dex/serai/issues/280 alongside some improvements - restrict batch sizes to ~25kb - rate limit batches to 1 batch per serai block per key group - allow multiple batches per block
diff --git a/coordinator/src/main.rs b/coordinator/src/main.rs index 50eda721a..8e7a1105f 100644 --- a/coordinator/src/main.rs +++ b/coordinator/src/main.rs @@ -676,7 +676,7 @@ async fn main() { let Ok(serai) = Serai::new("ws://127.0.0.1:9944").await else { log::error!("couldn't connect to the Serai nod...
13
11
7
[{"id": "G0", "claim": "MAX_BATCH_SIZE is set to 25_000_000, which is 25 MB, not the ~25 KB the comment claims.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The one-batch-per-validator-set-per-Serai-block check should be in validate_unsigned and r...
null
serai-dex__serai__36
serai-dex/serai
36
defect
95a4101a9abf78b91463836e48c9a00ad08b62a4
a98e83f2863153ee3fe06386b2eff576b4b5b3c9
ethereum: implement schnorr verification contract deployment and related crypto
- add `schnorr-verify` contract + build script - add crypto code in `coins/ethereum` to preprocess schnorr signature for solidity verifier - add code in `coins/ethereum` to deploy contract and call `verify` - add tests :D
diff --git a/.gitmodules b/.gitmodules index 63a704f2d..50a54ee63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "coins/monero/c/monero"] path = coins/monero/c/monero url = https://github.com/monero-project/monero +[submodule "coins/ethereum/schnorr-verify"] + path = coins/ethereum/schnorr-v...
13
10
2
[{"id": "G0", "claim": "The schnorr-verify submodule should be dropped: inline the contract in this repo, build it from Rust instead of hardhat/JS, keep the needed tests in Rust, and prefer an (A)GPL license structure; the README's npm/node.js requirement goes with it.", "category": "design", "verdict": "supported", "p...
null
serai-dex__serai__373
serai-dex/serai
373
defect
3d464c4736fd19bff9e6b108ad05737c346b0f2f
baaf96f59c06b1157e75059d275cc69de5625f1a
Staking pallet
- Implements stake/unstake - Allocate/deallocate to specific network validator set - Validator set rotation for serai network
diff --git a/Cargo.lock b/Cargo.lock index acbb31fb3..c1b9bbdf1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8470,6 +8470,7 @@ dependencies = [ "scale-info", "serai-in-instructions-pallet", "serai-primitives", + "serai-staking-pallet", "serai-tokens-pallet", "serai-validator-sets-pallet", "sp-api", @@ -8488...
24
24
2
[{"id": "G0", "claim": "Serai should be listed first, not last, in the network lists (tests, chain spec, NETWORKS map).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new staking pallet LICENSE copyright year (2022) needs extending to cover 2023.", "...
null
serai-dex__serai__383
serai-dex/serai
383
defect
4d1212ec6595496c0b6e5c4168a5eedec407cd0e
96e4680f762ccdc7936f557c90de5f30997ff330
Monero: add more legacy verify functions
Fixes #367 - Adds support for verifying legacy ring signatures - Changes blocks major/ miner versions to u8 to [match monero](https://github.com/monero-project/monero/blob/master/src/cryptonote_basic/cryptonote_basic.h#L459-L460) - Changes more of the varint code to be generic over the integer type - adds back s...
diff --git a/coins/monero/src/bin/reserialize_chain.rs b/coins/monero/src/bin/reserialize_chain.rs index 88b49fcd3..6a42412c4 100644 --- a/coins/monero/src/bin/reserialize_chain.rs +++ b/coins/monero/src/bin/reserialize_chain.rs @@ -129,7 +129,9 @@ mod binaries { // Accordingly, making sure our signature_hash ...
7
4
1
[{"id": "G0", "claim": "The no-std CI failure is legitimate (the other CI failures are only Docker connectivity issues), i.e. the pull request breaks the no-std build.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "In write_varint, `varint = u64::tr...
null
serai-dex__serai__384
serai-dex/serai
384
defect
01a4b9e6949c5494154482d5a28b5fb4b87e3c3c
33bc2270b12d4a2938834a10483f6e392b0efac8
Monero: fix decoy selection algo and add test for latest spendable
- DSA only selected coinbase outputs and didn't match the wallet2 implementation - Added test to make sure DSA will select a decoy output from the most recent unlocked block - Made usage of "height" in DSA consistent with other usage of "height" in Monero code (height == num blocks in chain) - Rely on monerod RPC re...
diff --git a/coins/monero/src/lib.rs b/coins/monero/src/lib.rs index db0205470..c97c87223 100644 --- a/coins/monero/src/lib.rs +++ b/coins/monero/src/lib.rs @@ -40,6 +40,10 @@ pub mod wallet; #[cfg(test)] mod tests; +pub const DEFAULT_LOCK_WINDOW: usize = 10; +pub const COINBASE_LOCK_WINDOW: usize = 60; +pub const ...
1
1
1
[{"id": "G0", "claim": "The reworked get_outs/get_unlocked_outputs returns whether outputs are unlocked in the daemon's current view instead of checking they are unlocked at the specified height, which breaks Serai's consensus requirements and leaves the PR unviable for Serai unless an RPC offers a consistent at-height...
null
serai-dex__serai__418
serai-dex/serai
418
defect
97fedf65d0d32c365e0440248be72e66597691da
e76938d0edd2b4419109ae5901cf8094f4799078
Replace `lazy_static` with `once_cell`
ERROR: type should be string, got "https://github.com/rust-lang-nursery/lazy-static.rs/issues/214\r\n\r\n`once_cell` can be faster (10~20%) in contentious retrieval as well, test examples here https://github.com/matklad/once_cell/tree/master/examples - although you'll have to swap in `lazy_static` and test yourself.\r\n\r\nOnce [`std::sync::LazyLock`](https://doc.rust-lang.org/std/sync/struct.LazyLock.html) is stabilized, `Lazy` can be renamed and `once_cell` can be removed altogether. [Tracking issue](https://github.com/rust-lang/rust/issues/109736)."
diff --git a/Cargo.lock b/Cargo.lock index 890d040de..179a3bf26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8336,8 +8336,8 @@ dependencies = [ "flexible-transcript", "hex", "jsonrpsee", - "lazy_static", "log", + "once_cell", "rand_core", "reqwest", "schnorr-signatures", @@ -8452,10 +8452,10 @@ dependenci...
1
1
0
[{"id": "G0", "claim": "The added INIT_LOGGER initializer should be written as `once_cell::sync::Lazy::new(env_logger::init)` rather than `::new(|| env_logger::init())`, otherwise clippy will likely complain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serai-dex__serai__440
serai-dex/serai
440
defect
8634d90b6b3ac2dc8a163db1c44367ca101a0a56
7be428ab4fb2233d2c9c69ef911b4924900b4626
Integrate session pallet into validator-sets pallet
- Integrates `pallet-session` functionality from validator sets pallet. - Removes `pallet-session` and `pallet-authority-discovery` pallets completely from runtime.
diff --git a/Cargo.lock b/Cargo.lock index 228b378f4..db09da8d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2268,7 +2268,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/serai-dex/substrate#103686467...
9
8
2
[{"id": "G0", "claim": "The doc comment's claim that CurrentSession does not store the current session for Serai is wrong now that the pallet owns sessions, and the line should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing la...
null
serai-dex__serai__472
serai-dex/serai
472
defect
62fa31de07a512d1af57eed1a7fda988147e03dc
ec6041182d3ff46bc618250246d8a5b5388d4b63
monero-serai: make it clear that not providing a change address is fingerprintable
When a signable transaction is constructed without a change address specified, all change is added to the tx fee (this helps Serai avoid accumulating dust outputs that spam the chain). This PR makes it clearer to the caller that it is fingerprintable when the caller does not provide a change address, since the caller m...
diff --git a/coins/monero/src/wallet/send/builder.rs b/coins/monero/src/wallet/send/builder.rs index 080504c00..eaa199c41 100644 --- a/coins/monero/src/wallet/send/builder.rs +++ b/coins/monero/src/wallet/send/builder.rs @@ -18,14 +18,14 @@ struct SignableTransactionBuilderInternal { r_seed: Option<Zeroizing<[u8; 32...
4
4
1
[{"id": "G0", "claim": "Clarify whether an InternalPayment::Change can exist when its address is None, since the newly added else branch making a change with no address not a subaddress may be dead or wrong.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
serai-dex__serai__486
serai-dex/serai
486
defect
32bea92742c4d9406223777e26f6b52476cac081
3dfa7eb66247c7473a806494018f5331d4c858d6
support input encoded data for bitcoin network
addresses https://github.com/serai-dex/serai/issues/258
diff --git a/processor/src/networks/bitcoin.rs b/processor/src/networks/bitcoin.rs index a4c8c89e3..873b3e9e1 100644 --- a/processor/src/networks/bitcoin.rs +++ b/processor/src/networks/bitcoin.rs @@ -21,7 +21,9 @@ use bitcoin_serai::{ consensus::{Encodable, Decodable}, script::Instruction, address::{Net...
9
9
4
[{"id": "G0", "claim": "The output script needs to be concatenated with a traditional spend script (scriptPubKey written as msg_script || spend_script and the sig as msg || script_sig), otherwise there is a DoS.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
serai-dex__serai__503
serai-dex/serai
503
defect
6c8040f723283894f128398cb7c990ef83762131
c30b6bef458e5c789bc537cfd87e81286b21ec0b
monero: only mask user features on new polyseed, not on decode
- This commit ensures a polyseed string that has unsupported features correctly errors on decode (without this PR, the test in this PR would trigger a debug assert, and if instead triggered in a non-debug build then `Polyseed::from_string` could return an incorrect successful response) - Also avoids panicking in debug...
diff --git a/coins/monero/src/tests/seed.rs b/coins/monero/src/tests/seed.rs index 646441184..7518d9dfd 100644 --- a/coins/monero/src/tests/seed.rs +++ b/coins/monero/src/tests/seed.rs @@ -7,7 +7,7 @@ use curve25519_dalek::scalar::Scalar; use crate::{ hash, wallet::seed::{ - Seed, SeedType, + Seed, SeedTyp...
3
3
0
[{"id": "G0", "claim": "The new test_invalid_polyseed test should clarify in what way the seed it uses is invalid.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The from_internal free function should live inside the Polyseed impl rather than outside it...
null
serai-dex__serai__515
serai-dex/serai
515
defect
3aa8007700304cb26fa943233858f92b47b1bbe5
31cb5d4474718a3677a539514339ef0f1245b882
monero: match monero's stricter check when decompressing points
https://github.com/serai-dex/serai/issues/102#issuecomment-1627474637 https://github.com/serai-dex/serai/issues/102#issuecomment-1627475063
diff --git a/Cargo.lock b/Cargo.lock index 144cf0418..ae1c0886e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4288,6 +4288,7 @@ dependencies = [ "curve25519-dalek", "dalek-ff-group", "group", + "hex", "sha3", "std-shims", "subtle", diff --git a/coins/monero/generators/Cargo.toml b/coins/monero/generators/Car...
1
1
0
[{"id": "G0", "claim": "Why did the PR remove the typing on the output key, changing it from CompressedEdwardsY to [u8; 32] (Output.key became [u8; 32] with .to_bytes() added at call sites)?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
serai-dex__serai__92
serai-dex/serai
92
defect
0543f3c4699560f17c06a6d145346ac0fb2600a7
3459d393fe93a5648a61534d3a41c1341cf7d712
implement Router.sol and associated functions
- implement `Router.sol` which allows for a group public key to be set/updated and for a list of arbitrary transactions to be executed - implement related rust code for deploying/calling contract functions - add unit tests closes #49
diff --git a/coins/ethereum/contracts/Router.sol b/coins/ethereum/contracts/Router.sol new file mode 100644 index 000000000..5ffea4ce1 --- /dev/null +++ b/coins/ethereum/contracts/Router.sol @@ -0,0 +1,101 @@ +//SPDX-License-Identifier: AGPLv3 +pragma solidity ^0.8.0; + +import "./Schnorr.sol"; + +contract Router is Sc...
17
17
2
[{"id": "G0", "claim": "The hand-rolled reentrancy guard is sub-optimal (the gas refund from deleting `locked` is smaller than restoring the original value), so the pull request should use OpenZeppelin's ReentrancyGuard instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
serde-rs__bytes__28
serde-rs/bytes
28
defect
5990ddc2c08030c76d4ad8892cb3250d7180a1a7
9c6daccde3ad374d9fc73f0fd78b6ed9c377c71e
Add support for `[u8; N]`
Hi. This PR adds support for constant length byte arrays `[u8; N]` and adds a `ByteArray<const N: usize>` wrapper type similar to `BytesBuf`. This would close #26. Motivations ======== Fixed sized array are often used for cryptography and embedded systems. Having efficient support to serialize/deserialize key...
diff --git a/Cargo.toml b/Cargo.toml index df2bf9f..efa9dfa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["serde", "serialization", "no_std"] categories = ["encoding"] readme = "README.md" edition = "2018" -rust-version = "1.31" +rust-version = "1.53" [features] default = ["std"] diff --...
9
9
1
[{"id": "G0", "claim": "The too-many-elements error message hardcodes 8 instead of using N, and should read \"Expected [u8; N], got more than N elements\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deserialization error messages should repo...
null
serde-rs__bytes__51
serde-rs/bytes
51
defect
1dd071d5a28413cf1f6084d9eb4d74d8c9244190
5a482b48abe6bbc21384f640ef7ca7220a9423d3
Implement From for ByteArray, ByteBuf and Bytes
Implement From for ByteArray, ByteBuf and Bytes. Implement Default for ByteArray.
diff --git a/src/bytearray.rs b/src/bytearray.rs index 91202d8..0baaa3a 100644 --- a/src/bytearray.rs +++ b/src/bytearray.rs @@ -62,6 +62,12 @@ impl<const N: usize> Debug for ByteArray<N> { } } +impl<const N: usize> Default for ByteArray<N> { + fn default() -> Self { + ByteArray { bytes: [0; N] } + ...
1
1
1
[{"id": "G0", "claim": "The blanket `impl<T> From<T> for ByteBuf where T: Into<Vec<u8>>` is too general and would block adding `impl From<ByteBuf> for Vec<u8>` in the future.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
serde-rs__json__1027
serde-rs/json
1,027
defect
a0ddb25ff6b86f43912f8fc637797bcbb920c61e
050311197c17859a3b16e786894e7337384a92d4
Allow `f32` and `f64` map keys
Now we allow objects with `f32` or `f64` string-serialized keys. For example: ```json { "1.123": "foo", "2.0": "bar" } ``` The `test_deny_float_key` test has been inverted, and the `deserialize_integer_key` macros have been renamed to `deserialize_numeric_key` in order to support `f32` and `f64`.
diff --git a/src/de.rs b/src/de.rs index 4b16ba2a8..556fe8292 100644 --- a/src/de.rs +++ b/src/de.rs @@ -2118,7 +2118,7 @@ struct MapKey<'a, R: 'a> { de: &'a mut Deserializer<R>, } -macro_rules! deserialize_integer_key { +macro_rules! deserialize_numeric_key { ($method:ident => $visit:ident) => { ...
5
5
4
[{"id": "G0", "claim": "Serializing non-finite f32/f64 map keys would produce invalid JSON or nonsense depending on the formatter, so those values need to be rejected.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "MapKey's deserialize_f32/f64 use s...
null
serde-rs__json__1062
serde-rs/json
1,062
defect
0daacdd52e4abb4a47a7f7fc598c5bd4492aa104
16e04ceeddfdfad18fb1ae8530695a318fa9bc02
Simplify/remove build.rs following the bump to 2021 edition
Since serde-json's MSRV is 1.56 (due to using a 2021 edition), most of the hidden features enabled in build.rs shouldn't ever get enabled during the build. They mostly indicated whether some of the BTreeMap methods were available. The last one for limb_width can be implemented with a #[cfg] or two. it is a separate ...
diff --git a/build.rs b/build.rs deleted file mode 100644 index 0e12602e4..000000000 --- a/build.rs +++ /dev/null @@ -1,54 +0,0 @@ -use std::env; -use std::process::Command; -use std::str::{self, FromStr}; - -fn main() { - println!("cargo:rerun-if-changed=build.rs"); - - // Decide ideal limb width for arithmetic ...
2
2
2
[{"id": "G0", "claim": "In `remove_entry`, drop the leftover `#[cfg(...)]` attribute and the `return` keyword so the method ends with `self.map.remove_entry(key)` (via the applied suggestion).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR sh...
null
serde-rs__json__1161
serde-rs/json
1,161
defect
eca2658a22cb39952783cb6914eb18242659f66a
3063d69fd53f075d06318c0b19a7ddd700fe57a6
Vectorize string parsing
I've implemented [your suggestion here](https://github.com/serde-rs/json/pull/1160#pullrequestreview-2203573484), and I need a bit of your input regarding my approach. What we *really* want is to find the first character s.t. `ch == b'"' || ch == b'\\' || ch < 0x20`. memchr3 supports searches of kind `ch == a || ch ...
diff --git a/src/read.rs b/src/read.rs index e03e13f28..adb17850c 100644 --- a/src/read.rs +++ b/src/read.rs @@ -2,6 +2,7 @@ use crate::error::{Error, ErrorCode, Result}; use alloc::vec::Vec; use core::char; use core::cmp; +use core::mem; use core::ops::Deref; use core::str; @@ -221,7 +222,7 @@ where { ...
6
5
3
[{"id": "G0", "claim": "The SWAR search computes the found-byte offset with trailing_zeros, which is only correct on little-endian; on big-endian targets it returns the wrong position (reproducible with Miri on powerpc64) and leading_zeros is needed there.", "category": "correctness", "verdict": "supported", "priority"...
null
serde-rs__json__156
serde-rs/json
156
defect
b4022a299a4664e6bd983471b4519c6353352a23
f47c4e3eaca91e67104b7dd3cf2d3524f9c6c623
Ensure value::Serializer emits Value::Null for non-finite floats
See https://tc39.github.io/ecma262/#sec-serializejsonproperty Fixes #155 ## As a heads up, I'm pretty new to rust so if I'm off-track with this PR I apologize! I ran the tests using the nightly compiler (as that was the only one that seemed to allow the given compiler features).
diff --git a/json/src/value.rs b/json/src/value.rs index ce6d9b5fe..4ff04f43e 100644 --- a/json/src/value.rs +++ b/json/src/value.rs @@ -643,7 +643,10 @@ impl ser::Serializer for Serializer { #[inline] fn serialize_f64(&mut self, value: f64) -> Result<(), Error> { - self.value = Value::F64(value); + ...
1
1
0
[{"id": "G0", "claim": "The added match in serialize_f64 would be more idiomatic as an if/else expression assigning Value::F64(value) for finite values and Value::Null otherwise.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
serde-rs__json__278
serde-rs/json
278
defect
b4adb3c4a4eb32645884fd48485eb56e0c650b07
deae2449de606ac127ce79c00f290ed0092f90a7
Extend the Error API with line, column, category
Fixes #245. @vorner, @kixunil who were interested in that ticket and @mitsuhiko who was interested in line and column, does this look like it would work for your use cases? --- ![selection_026](https://cloud.githubusercontent.com/assets/1940490/23835821/27a488fe-072b-11e7-8ee3-6d4a0be403d8.png) --- ![select...
diff --git a/json/src/de.rs b/json/src/de.rs index 864619eba..b93aad75e 100644 --- a/json/src/de.rs +++ b/json/src/de.rs @@ -159,7 +159,7 @@ impl<R: Read> Deserializer<R> { where V: de::Visitor, { if try!(self.parse_whitespace()) { // true if eof - return Err(self.peek_error(ErrorCode:...
3
1
0
[{"id": "G0", "claim": "The rewrite of decode_hex_escape to loop over next_or_eof could cause slowdowns again.", "category": "performance", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new error API is missing a conversion to the underlying io::Error, which would best be ex...
null
serde-rs__json__353
serde-rs/json
353
defect
70dd4be9db3fa9f1adfdfc5edf7015bdbb57d748
343739de85755eb55989a56114aaa6e6455664cb
change error type for trailing commas, fixes #352
**NOTE:** There is one small defect with this patch. The line and column numbers that the error message reports match the position of the closing brace after the trailing comma and not the position of the trailing comma. I plant to continue searching for the logic that determines the line and column numbers. If some...
diff --git a/src/de.rs b/src/de.rs index 9ec5165f9..b5aa50d01 100644 --- a/src/de.rs +++ b/src/de.rs @@ -845,6 +845,7 @@ impl<'de, 'a, R: Read<'de> + 'a> de::MapAccess<'de> for MapAccess<'a, R> { match peek { Some(b'"') => seed.deserialize(MapKey { de: &mut *self.de }).map(Some), + So...
2
2
2
[{"id": "G0", "claim": "Add an error variant that specifically means trailing comma instead of reusing the ambiguous \"trailing characters\".", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The errors reported for trailing commas still point at misleading...
null
serde-rs__json__384
serde-rs/json
384
defect
ba3c859d5807ea94991b392d05a0138a2c978190
2082f48c9683f517c6fdc0a2231d9d6328bcdb37
Support top-level primitives in StreamDeserializer
Currently StreamDeserializer only supports objects and arrays, because it couldn't handle things like `truefalse` properly before. This PR changes the behavior of the parser so that it checks after parsing an identifier whether there's any trailing characters that aren't one of ` \n\t\r"[]{},:` or EOF, and if there is ...
diff --git a/src/de.rs b/src/de.rs index a2deef2cb..a4f985fc0 100644 --- a/src/de.rs +++ b/src/de.rs @@ -16,7 +16,7 @@ use serde::de::{self, Unexpected}; use super::error::{Error, ErrorCode, Result}; -use read::{self, Reference}; +use read::{self, Position, Reference}; pub use read::{Read, IoRead, SliceRead, St...
2
2
2
[{"id": "G0", "claim": "Document the new behavior thoroughly on the StreamDeserializer type, since the existing doc comment on it is outdated by this change.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Implement the feature so the new end-of-va...
null
serde-rs__json__414
serde-rs/json
414
defect
d78b23548e5e7a63520d46c9e9a81e73bcd335d9
a1a435acc59be12049f8600b33885d0d4d149fb4
Improve error when json strings contain control characters
A first pass at resolving #364. Comments are welcome. This patch checks specifically for control characters (ASCII 0x00 - 0x1F) in a JSON string and reports a more relevant error message: ``` control character (\u0000-\u001F) found while parsing a string at line 1 column 1" ``` Points of concern: - There...
diff --git a/src/error.rs b/src/error.rs index 2dc980604..5be9fdc5f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -58,6 +58,7 @@ impl Error { match self.err.code { ErrorCode::Message(_) => Category::Data, ErrorCode::Io(_) => Category::Io, + ErrorCode::ControlCharacterWhil...
4
4
1
[{"id": "G0", "claim": "Move the new ControlCharacterWhileParsingString variant next to the variant it most resembles (e.g. InvalidUnicodeCodePoint) instead of placing it at the top of the ErrorCode enum.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
serde-rs__json__509
serde-rs/json
509
defect
22c0c7e92fe93d0c0f8ee1a1fcf3588290975d53
19c959cf928fb5021e7702638404ac41629796eb
Unbounded depth
Provides a method `disable_recursion_limit` to parse arbitrarily deep JSON structures without any consideration for overflowing the stack. When using this method, the caller will want to provide some other way to protect against stack overflows, such as by wrapping the Deserializer in the dynamically growing stack a...
diff --git a/.travis.yml b/.travis.yml index ef58bebb3..1e75da908 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ matrix: - cargo test --features preserve_order - cargo test --features arbitrary_precision - cargo test --features raw_value + - cargo test --features unbounde...
3
1
0
[{"id": "G0", "claim": "Use a field-specific `#[cfg]` on the new `disable_recursion_limit` field instead of duplicating the whole `Deserializer` construction under two feature-gated blocks, since that gives a clearer view of the difference between features.", "category": "maintainability", "verdict": "opposed", "priori...
null
serde-rs__json__671
serde-rs/json
671
defect
2d4cf5e59425a7317373e267b78fb201eac4f6d1
cfd0a317fdb1f1409ee621b6d68e027999581d8e
tweak f64 deserialization to make float roundtrips work
This is a new attempt at fixing issue #536 using the latest version of @Alexhuszagh 's `minimal-lexical` library for deserialization of f64 values. The goal is to make float roundtrip work without severely impacting compile times. I have: - checked that the crate still compiles with Rust 1.31 - added a sample of r...
diff --git a/Cargo.toml b/Cargo.toml index df75c4001..bd61fd869 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ edition = "2018" serde = { version = "1.0.100", default-features = false } indexmap = { version = "1.2", optional = true } itoa = { version = "0.4.3", default-features = false } +minimal-lexical...
7
1
1
[{"id": "G0", "claim": "The PR's roundtrip coverage should be extended to test every finite f32 value (exhaustive roundtrip testing).", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Deserializing to f32 leaves a 1-ULP error for values like 0x15ae43fd / 0...
null
serde-rs__json__814
serde-rs/json
814
defect
2e1c46c89501cbe9edc41d78469ca690bf79ff65
d12fbb9520bc6d3a5aac6d233bb0ffaae831f956
Implement `Hash` for `Number`.
This is the minimal version of my previous PR #790. I implemented the `Eq` and `Hash` traits for the `Number` type, regardless of its definition. Contrarily to my previous PR, this is strictly limited to the `Number` type. I was originally going to use the `ordered_float` crate for that, but it turns out it is much ...
diff --git a/src/number.rs b/src/number.rs index b6b617f64..ad59ae6dd 100644 --- a/src/number.rs +++ b/src/number.rs @@ -16,13 +16,13 @@ use serde::de::{IntoDeserializer, MapAccess}; pub(crate) const TOKEN: &str = "$serde_json::private::Number"; /// Represents a JSON number, whether integer or floating point. -#[de...
1
1
1
[{"id": "G0", "claim": "The Hash impl for N hashes +0.0 and -0.0 differently although they compare equal, violating Hash's documented requirement that k1 == k2 implies hash(k1) == hash(k2).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
serde-rs__json__822
serde-rs/json
822
defect
5c4f8b225448c3dd3b90003d51a03dcee05da300
68d3b45c9766f8a36b278eabc870e8232128f83d
Add retain to Map
This adds the `retain` function to the Map type which calls the inner maps, Either `indexmap` or std `BTreeMap`'s, retain. I'm trying to mutate a `Value::Object`'s Map in-place and could't find a nice way without the `retain` function. These new `retain` functions will also only be included when compiling with ...
diff --git a/build.rs b/build.rs index 04ff4a0a1..7f10111d7 100644 --- a/build.rs +++ b/build.rs @@ -31,6 +31,12 @@ fn main() { if minor < 45 { println!("cargo:rustc-cfg=no_btreemap_remove_entry"); } + + // BTreeMap::retain + // https://blog.rust-lang.org/2021/06/17/Rust-1.53.0.html#library-cha...
2
2
0
[{"id": "G0", "claim": "The URL in the BTreeMap::retain comment in build.rs is a broken link and should use the #stabilized-apis anchor as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "src/map.rs contains two identical copies of the re...
null
serde-rs__json__828
serde-rs/json
828
defect
33c3134cd2b96a955c16335131161d7889e98dd6
849c6845b4c5b5076897bedeb9d0912e95e50517
Deserialize lone surrogates into byte bufs
This commit deserializes lone surrogates in strings that are encoded in escape sequences instead of erroring on them. As per https://github.com/serde-rs/json/issues/827#issuecomment-976983620 --- Note the implementation here is ugly & unoptimized. I'll go fix this after an initial review of the functionality...
diff --git a/src/de.rs b/src/de.rs index a2f34b908..0766edf31 100644 --- a/src/de.rs +++ b/src/de.rs @@ -1580,20 +1580,21 @@ impl<'de, 'a, R: Read<'de>> de::Deserializer<'de> for &'a mut Deserializer<R> { /// ``` /// /// Backslash escape sequences like `\n` are still interpreted and required - /// to ...
4
4
2
[{"id": "G0", "claim": "The docstring wording \"lone surrogate pairs\" is a contradiction — a surrogate pair is two surrogates while a lone surrogate is one — so it should say \"lone surrogates\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In ...
null
serde-rs__json__830
serde-rs/json
830
defect
76e376c8d1f30dcfdfcdde486b3ae9102c793841
5ec8141acf127d9dcbc01b2b63c6426d158ee1af
Allow lone surrogates in raw values
See https://github.com/serde-rs/json/issues/827#issuecomment-979208987
diff --git a/src/read.rs b/src/read.rs index 2621f3f3f..fff690573 100644 --- a/src/read.rs +++ b/src/read.rs @@ -955,36 +955,13 @@ where match ch { b'"' | b'\\' | b'/' | b'b' | b'f' | b'n' | b'r' | b't' => {} b'u' => { - let n = match tri!(read.decode_hex_escape()) { - 0...
4
1
1
[{"id": "G0", "claim": "The use case should be handled by deserializing to ByteBuf (per #828) and patching out leftover surrogates with U+FFFD, rather than duplicating string processing logic in this PR.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A Byt...
null
serde-rs__serde__1213
serde-rs/serde
1,213
defect
5efb22ebee128f1ec4a755556230bdd66c3f2026
def8d6e8afc2dcbbd96d3db486b286c295ef46df
Support #[derive(Serialize, Deserialize)] when using associated types
Prior to this, structs and enums that had fields using associated types wouldn't have the appropriate where bounds set. This fixes that, meaning that this now builds: ```rust trait Trait { type Assoc; } #[derive(Serialize)] struct Struct<T: Trait> { assoc: T::Assoc, } ``` Fixes #1208.
diff --git a/serde_derive/src/bound.rs b/serde_derive/src/bound.rs index 4e7c7d71b..6cfee5f2b 100644 --- a/serde_derive/src/bound.rs +++ b/serde_derive/src/bound.rs @@ -50,18 +50,35 @@ pub fn with_where_predicates( generics } -pub fn with_where_predicates_from_fields<F>( +pub fn with_where_predicates_from_field...
2
2
1
[{"id": "G0", "claim": "The bound generation should work even when the associated type's generic parameter is not the first generic parameter, e.g. struct AssocDerive<S, T: AssocSerde> { s: S, assoc: T::Assoc }.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
serde-rs__serde__1270
serde-rs/serde
1,270
defect
656ea96c6578a0341c7e8f88e08fe575701eccad
7cbb144a83aedde16a5b85018d33df8024cb0c6a
Transparent attribute to specify that representation is the same as its only field
Fixes #1054.
diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index eaee536cfe..4d45809473 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -269,7 +269,9 @@ fn borrowed_lifetimes(cont: &Container) -> BorrowedLifetimes { } fn deserialize_body(cont: &Container, params: &Parameters) -> Fragment { - ...
3
2
0
[{"id": "G0", "claim": "The new check_transparent should also allow (or account for) single-variant enums, since they are effectively structs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The removal of #[cfg(feature = \"deserialize_in_place\")] from D...
null
serde-rs__serde__1695
serde-rs/serde
1,695
defect
d540e72fc784e459c75d167973a9ac54ef1bd731
3b7f72b2684adae567ac5c782ce4d651c2d5bd66
Add #[serde(rename_all_fields = "foo")] attribute
fixes #1061 If you don't like the style change in the second commit, I can remove it from this PR (or you can just cherry-pick the first commit).
diff --git a/serde_derive/src/internals/ast.rs b/serde_derive/src/internals/ast.rs index 415a6ea659..1a89e3046a 100644 --- a/serde_derive/src/internals/ast.rs +++ b/serde_derive/src/internals/ast.rs @@ -88,9 +88,12 @@ impl<'a> Container<'a> { if field.attrs.flatten() { ...
1
1
0
[{"id": "G3", "claim": "The container-level #[serde(default)] likewise points its error at the enum/struct token instead of the attribute; the author asks whether that should be changed in another PR.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null