Compare commits
No commits in common. "8fc9851e2122cb959ff9e4673a506cb3e282e56a" and "e27dad573b84fe262a8267ca498412476d28f1af" have entirely different histories.
8fc9851e21
...
e27dad573b
4 changed files with 3 additions and 23 deletions
|
|
@ -5,13 +5,6 @@ All notable changes to WuttaFarm will be documented in this file.
|
|||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.11.4 (2026-05-30)
|
||||
|
||||
### Fix
|
||||
|
||||
- add "delete log" support for data export to farmOS
|
||||
- sort farmOS data fetch when importing/exporting logs
|
||||
|
||||
## v0.11.3 (2026-05-04)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "WuttaFarm"
|
||||
version = "0.11.4"
|
||||
version = "0.11.3"
|
||||
description = "Web app to integrate with and extend farmOS"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
|
|
|
|||
|
|
@ -781,11 +781,7 @@ class ToFarmOSLog(ToFarmOS):
|
|||
self.normal = self.app.get_normalizer(self.farmos_client)
|
||||
|
||||
def get_target_objects(self, **kwargs):
|
||||
# nb. must sort the data or else paging / iteration will not
|
||||
# work correctly and we get back data set which contains
|
||||
# duplicates but also is missing some records...
|
||||
params = {"sort": "drupal_internal__id"}
|
||||
return list(self.farmos_client.log.iterate(self.farmos_log_type, params=params))
|
||||
return list(self.farmos_client.log.iterate(self.farmos_log_type))
|
||||
|
||||
def get_target_object(self, key):
|
||||
|
||||
|
|
@ -910,11 +906,6 @@ class ToFarmOSLog(ToFarmOS):
|
|||
payload = {"attributes": attrs, "relationships": rels}
|
||||
return payload
|
||||
|
||||
def delete_target_object(self, obj):
|
||||
if not self.dry_run:
|
||||
self.farmos_client.log.delete(self.farmos_log_type, obj["id"])
|
||||
return True
|
||||
|
||||
|
||||
class ActivityLogImporter(ToFarmOSLog):
|
||||
|
||||
|
|
|
|||
|
|
@ -1254,11 +1254,7 @@ class LogImporterBase(FromFarmOS, ToWutta):
|
|||
def get_source_objects(self):
|
||||
""" """
|
||||
log_type = self.get_farmos_log_type()
|
||||
# nb. must sort the data or else paging / iteration will not
|
||||
# work correctly and we get back data set which contains
|
||||
# duplicates but also is missing some records...
|
||||
params = {"sort": "drupal_internal__id"}
|
||||
return list(self.farmos_client.log.iterate(log_type, params=params))
|
||||
return list(self.farmos_client.log.iterate(log_type))
|
||||
|
||||
def normalize_source_object(self, log):
|
||||
""" """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue