Maikel Linke
2c97638aa1
Enhance readability
2025-12-19 10:21:02 +11:00
Maikel Linke
ceee9671d9
Replace method with name conflict causing error
2025-12-19 10:16:46 +11:00
Maikel Linke
af6be02ba4
Fix social media import
2025-12-12 16:46:43 +11:00
Maikel Linke
d7603755bf
Mark Litefarm farms as primary producers
2025-12-12 14:46:11 +11:00
Maikel Linke
f9d255a266
Continue on fail of Litefarm import
...
And report validation errors.
2025-12-12 14:03:37 +11:00
Maikel Linke
fe8a0a908e
Import DFC country by name or ISO code
2025-12-10 17:17:51 +11:00
Maikel Linke
3aa4c2a25f
Import more fields from Litefarm
2025-12-10 16:24:54 +11:00
Maikel Linke
3331aaa382
Fetch data from URL provided by Litefarm
...
So we don't have to distinguish between staging and production. They
will provide the right URL.
2025-12-10 16:24:54 +11:00
Maikel Linke
b302dcfbec
Update existing enterprises
2025-12-10 16:24:54 +11:00
Maikel Linke
f332a6934b
Move growing enterprise creation to own class
2025-12-10 16:24:53 +11:00
Maikel Linke
baad0135f9
Import enterprises and owners with minimal data
...
Still missing:
* Check for existing enterprises.
* Import all the available data.
2025-12-10 16:24:53 +11:00
Maikel Linke
1973e36634
Extract token and HTTP layer for re-use
...
Calling a webhook as a platform and fetching enterprise data will have
the same auth.
2025-12-10 16:24:53 +11:00
Maikel Linke
2e62531232
Authenticate only as platform to call webhooks
2025-12-10 16:24:53 +11:00
Maikel Linke
d811103a71
Add dummy webhook endpoint for LiteFarm
2025-12-10 16:24:53 +11:00
Maikel
1029b61bb0
Merge pull request #13742 from mkllnk/market-organic
...
Add Market Organic as available platform
2025-11-28 12:15:57 +11:00
Maikel Linke
81165cd82b
Replace country names with standard ISO code concepts
...
The DFC version 1.16.0 introduced this new standardisation.
2025-11-24 16:59:41 +11:00
Maikel Linke
5f237adda2
Publish phone numbers as objects
...
The standard introduced this a while ago but I didn't notice.
We have to update integrations like Disco Regen now.
2025-11-24 16:44:23 +11:00
Maikel Linke
fbce264dd7
Adjust webhook URL for Market Organic
2025-11-21 14:16:47 +11:00
Maikel Linke
4ca420bd84
Correct needed scope of access token
2025-11-21 14:16:41 +11:00
Maikel Linke
aaad1bc0b3
Accept short client ids in tokens
2025-11-14 10:00:16 +11:00
Maikel Linke
d7f4a5c874
Allow Market.Organic to access DFC API
2025-11-14 10:00:16 +11:00
Maikel Linke
f8ca8ae942
Trust FDC dev realm to sign tokens
2025-11-14 10:00:16 +11:00
Maikel Linke
2805ea4926
Allow LiteFarm to access DFC API
2025-11-14 10:00:16 +11:00
David Rodríguez
4c6d894bc0
Bump RuboCop to 1.86.6
...
There were a few changes needed:
* Plugins are now specified through `plugin:` config keyword.
* All plugin gems need to be specified explicitly in Gemfile since they
are no longer dependencies of plugins already specified explicitly.
* All plugin gems need to be updated in other to use the new APIs.
* One cop was renamed.
* New offenses safe to correct were corrected directly with `bundle exec
rubocop -a`.
* New offenses unsafe to correct were added to the TODO configuration
with `bundle exec rubocop --auto-gen-config --auto-gen-only-exclude
--exclude-limit 1400 --no-auto-gen-timestamp`.
2025-10-27 11:30:33 +01:00
Maikel Linke
b2da57b496
Publish supplier of catalog item
2025-10-10 16:18:22 +11:00
Maikel Linke
c6a34cfe34
Move catalog_item builder into the right module
2025-10-10 16:18:22 +11:00
Maikel Linke
591a279927
DRY controller
2025-10-10 16:18:22 +11:00
Maikel Linke
86774b3e4e
Tell data proxy the enterprise to update
2025-10-10 16:18:22 +11:00
Maikel Linke
2761cee5e6
Publish coordinates of addresses
2025-10-10 16:18:22 +11:00
Maikel Linke
f2f0d954c6
Move source of truth of platforms into one place
...
The first test tokens had an inconsistent client_id and I had to
introduce multiple mappings to get the right config. But that has been
harmonised and we can put the config in one place.
2025-10-10 16:18:22 +11:00
Maikel Linke
1028d42e35
Update test token for new dev client id
2025-10-10 16:18:22 +11:00
Maikel Linke
2780ae78f7
Add CQCM production servers
2025-10-10 16:18:21 +11:00
Maikel Linke
bf661159c6
Notify data proxy of permission changes
2025-10-10 16:18:21 +11:00
Maikel Linke
df6e553661
Add SuppliedProducts index endpoint
2025-10-10 16:18:21 +11:00
Maikel Linke
4d59343f6c
List enterprises on DFC API
2025-10-10 16:18:21 +11:00
Maikel Linke
44d29e98e0
Fix publishing all enterprises when listing catalog
2025-10-10 16:18:21 +11:00
Maikel Linke
cb9edfaed8
Show DPM platforms enabled for user
2025-10-10 16:18:21 +11:00
Maikel Linke
51a3085452
Add CQCM staging server to platforms
2025-10-10 16:18:21 +11:00
Maikel Linke
6e489d7770
Enforce required DFC permissions
2025-08-22 16:46:59 +10:00
Maikel Linke
1d2115766a
Show product groups to platform user
...
I removed the caching of `managed_enterprises` in Permissions because
it's just a scope and calling it again is very cheap. And that makes the
method a lot easier to read now that we have a conditional here.
Accessing the managed enterprises via the user instead of a separate
scope on the Enterprise model also reduce the SQL queries. We may want
to use this method in more places. I prefer to keep the
admin-conditional in a permissions class instead of in the model.
2025-08-13 15:06:31 +10:00
Maikel Linke
6814ef43f4
Show addresses to platform users
2025-08-13 15:06:25 +10:00
Maikel Linke
82d0e1bf68
Show enterprise to authorised platform user
2025-08-13 15:02:09 +10:00
Maikel Linke
b16e541a81
Show DFC catalog to authorised platform
2025-08-13 15:02:09 +10:00
Maikel Linke
c12d494de3
Demonstrate authentication as DFC client app
2025-08-13 15:02:09 +10:00
Maikel Linke
9be27842e1
Accepts tokens from Startin'Blox OIDC server
...
The API controllers don't know the new type of user yet and will raise
errors but we can work on that bit by bit.
2025-08-13 15:02:09 +10:00
Maikel
8491a167ed
Merge pull request #13350 from mkllnk/dfc-ui
...
Add permission module with example data
2025-08-13 10:00:53 +10:00
Maikel Linke
e54c27c900
Use more precise regex
2025-08-11 16:23:08 +10:00
Maikel Linke
842f4ae40e
Re-enable CSRF check supported by DPM now
2025-08-11 15:13:35 +10:00
Maikel Linke
994f1ca6c6
Update scope ids
2025-08-08 14:00:41 +10:00
Maikel Linke
f65e4797cf
Add feature toggle for DFC dev platform
2025-08-08 14:00:40 +10:00