feat: alignment on import conflict resolution terms
This commit is contained in:
1 parent
f39fe9c40d
commit
b2ced48cc5
5 files changed
+35
-8
No files matched your search
@@ -230,11 +230,12 @@ defmodule BDS.Desktop.ShellLive.ImportEditor.AnalysisState do
|
||||
def importable_entity_count(items) do
|
||||
Enum.count(items || [], fn item ->
|
||||
item.status == "new" or
|
||||
(item.status == "conflict" and
|
||||
Map.get(item, :resolution, "ignore") not in ["ignore", "skip"])
|
||||
(item.status == "conflict" and conflict_importable?(Map.get(item, :resolution, "ignore")))
|
||||
end)
|
||||
end
|
||||
|
||||
defp conflict_importable?(resolution), do: resolution in ["overwrite", "merge", "import"]
|
||||
|
||||
@spec detail_items(term(), term()) :: term()
|
||||
def detail_items(nil, _bucket), do: []
|
||||
|
||||
|
||||
Reference in new issue
Block a user