File_Adapter: refactoring-refactor to match ReplaceInMemory refactoring
@alelom đang làm issue này rồi.
Từ ngày 2/7/2019.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
As explained in https://github.com/BHoM/BHoM_Adapter/issues/106
Since File_Adapter does not set AdapterConfig.ProcessInMemory, that defaults to true.
This means that the call to Create will always have replaceAll set to true.
Therefore the following calls will have replaceAll always set to true:
https://github.com/BHoM/BHoM_Adapter/blob/49d63e82db3eefa5eecb960e1bd84ab410fc2c51/File_Adapter/CRUD/Create.cs#L40-L46
So these lines never get called
https://github.com/BHoM/BHoM_Adapter/blob/49d63e82db3eefa5eecb960e1bd84ab410fc2c51/File_Adapter/CRUD/Create.cs#L80-L81
As well as this is never called with Append:
https://github.com/BHoM/BHoM_Adapter/blob/49d63e82db3eefa5eecb960e1bd84ab410fc2c51/File_Adapter/CRUD/Create.cs#L57
Proposed change
If anything, the option for the Create method to override should be specifiable dynamically, rather than hard-coded.
This might be solved by making the so called config parameter available to all CRUD methods.
I would remove replaceAll as a parameter of the Create() and use another parameter like
config["CreateOverride"] = true.
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 7
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BHoM/File_Toolkit
-
type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
BHoM/File_Toolkit#206 ·
-
JSON push always wrapped in array structureCó thể làm lại được @michaelhoehn đã nhận 812 ngày trước và không có pull request nào đang mở. Đang mởtype:feature
BHoM/File_Toolkit#193 · 1 người được giao ·
-
type:bug type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
BHoM/File_Toolkit#191 ·
-
Create Unit Tests to automate regression testingCó thể làm lại được @alelom đã nhận 906 ngày trước và không có pull request nào đang mở. Đang mởtype:test-script
BHoM/File_Toolkit#189 · 1 người được giao ·
-
Enable writing to JSON without including BHoM-specific attributesCó thể làm lại được @alelom đã nhận 1607 ngày trước và không có pull request nào đang mở. Đang mởtype:feature
BHoM/File_Toolkit#133 · 1 bình luận · 1 người được giao ·
Tất cả issue của BHoM/File_Toolkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
builtbybel/CrapFixer#112 ·
-
area-ai untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
dotnet/extensions#7790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Beginner Friendly T: Bugfix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
space-wizards/space-station-14#46220 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P2 testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dotnet/runtime#134766 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày