plain.observer 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of plain.observer might be problematic. Click here for more details.

@@ -1,5 +1,16 @@
1
1
  # plain-observer changelog
2
2
 
3
+ ## [0.3.0](https://github.com/dropseed/plain/releases/plain-observer@0.3.0) (2025-07-22)
4
+
5
+ ### What's changed
6
+
7
+ - Database models now use the new `PrimaryKeyField` instead of `BigAutoField` for primary keys ([4b8fa6a](https://github.com/dropseed/plain/commit/4b8fa6aef1))
8
+ - Admin interface updated to use `id` instead of `pk` for ordering and references ([4b8fa6a](https://github.com/dropseed/plain/commit/4b8fa6aef1))
9
+
10
+ ### Upgrade instructions
11
+
12
+ - No changes required
13
+
3
14
  ## [0.2.0](https://github.com/dropseed/plain/releases/plain-observer@0.2.0) (2025-07-21)
4
15
 
5
16
  ### What's changed
plain/observer/admin.py CHANGED
@@ -28,9 +28,9 @@ class TraceViewset(AdminViewset):
28
28
  # Actually want a button to delete ALL! not possible yet
29
29
  # actions = ["Delete"]
30
30
 
31
- # def perform_action(self, action: str, target_pks: list):
31
+ # def perform_action(self, action: str, target_ids: list):
32
32
  # if action == "Delete":
33
- # Trace.objects.filter(id__in=target_pks).delete()
33
+ # Trace.objects.filter(id__in=target_ids).delete()
34
34
 
35
35
  class DetailView(AdminModelDetailView):
36
36
  model = Trace
@@ -49,7 +49,7 @@ class SpanViewset(AdminViewset):
49
49
  "parent_id",
50
50
  "start_time",
51
51
  ]
52
- queryset_order = ["-pk"]
52
+ queryset_order = ["-id"]
53
53
  allow_global_search = False
54
54
  displays = ["Parents only"]
55
55
  search_fields = ["name", "span_id", "parent_id"]
@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
14
14
  migrations.CreateModel(
15
15
  name="Trace",
16
16
  fields=[
17
- ("id", models.BigAutoField(auto_created=True, primary_key=True)),
17
+ ("id", models.PrimaryKeyField()),
18
18
  ("trace_id", models.CharField(max_length=255)),
19
19
  ("start_time", models.DateTimeField()),
20
20
  ("end_time", models.DateTimeField()),
@@ -39,7 +39,7 @@ class Migration(migrations.Migration):
39
39
  migrations.CreateModel(
40
40
  name="Span",
41
41
  fields=[
42
- ("id", models.BigAutoField(auto_created=True, primary_key=True)),
42
+ ("id", models.PrimaryKeyField()),
43
43
  ("span_id", models.CharField(max_length=255)),
44
44
  ("name", models.CharField(max_length=255)),
45
45
  ("kind", models.CharField(max_length=50)),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.observer
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: On-page telemetry and observability tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -1,7 +1,7 @@
1
- plain/observer/CHANGELOG.md,sha256=hpdLGk-BRxA-2gHzygAp0XrFvvM43IhJg8TT4AjWoIo,2055
1
+ plain/observer/CHANGELOG.md,sha256=Af6I47_-oKIWBHFKb0J6fDqfYiww73BkxK-M3fjJGLI,2522
2
2
  plain/observer/README.md,sha256=5wM48-iE8i7xOjIK8KCgZ-Vmp2xpDtX73UnE5QeNnd4,31
3
3
  plain/observer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- plain/observer/admin.py,sha256=sFg5YUAnw-zZJv3_xnMRtI9hFOLI6w77GEV4zhALhQo,2537
4
+ plain/observer/admin.py,sha256=Hst19WLMzjjztjTIf3j3PGxijikPZYJJukZBAF5DSNI,2537
5
5
  plain/observer/cli.py,sha256=-huHPj4xkrq4xemDo8XzoNtmE53g0YWuVLW66Gr1d88,20935
6
6
  plain/observer/config.py,sha256=FuJi1jiDSvOTcmP-6Ea4OlGZt5cRf4iTp1e0dgpJ45E,1494
7
7
  plain/observer/core.py,sha256=D9vX0GP8JBB8-NFAKrOwPSHl_wdZo1h0A5C6xKsJVjA,2245
@@ -10,7 +10,7 @@ plain/observer/models.py,sha256=uVmytQHCYilMfULGJHk63l48APOHqEcbcRtYoE7L_RU,1307
10
10
  plain/observer/otel.py,sha256=nr4BYQb6rWF7uXsOVmBWV-8z5jLTPbDnYi6VSdVvUnE,14585
11
11
  plain/observer/urls.py,sha256=oLJoDjB7YMUx8z-MGql_xXSXkfacVKFp-aHNXaKzs38,376
12
12
  plain/observer/views.py,sha256=9TRvjfBk62nxlfZXXk-LsMXqnCxL_FIrQH4eUFIUN9A,4226
13
- plain/observer/migrations/0001_initial.py,sha256=I-4DNr_WK2Gx428Ql3pG3-W8C0xvk0FVTZnd5swIAQ4,3376
13
+ plain/observer/migrations/0001_initial.py,sha256=HVoSrd5V-IOqD1adADIAzqMH8xMlPwyLOFH6JcGFniI,3312
14
14
  plain/observer/migrations/0002_trace_share_created_at_trace_share_id_trace_summary_and_more.py,sha256=lgFqdn66zq7AoCvkC3MIvLXiE_Omup5EEMDSe1jpKOg,1765
15
15
  plain/observer/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  plain/observer/templates/observer/trace.html,sha256=42yuvqAH7poRMFbueXT-MeSIClmUaLSHohG9LF0sepk,27098
@@ -19,7 +19,7 @@ plain/observer/templates/observer/trace_share.html,sha256=HrYLti5BpX96-6Bm_37OOb
19
19
  plain/observer/templates/observer/traces.html,sha256=cFnlIuCf6XJEpHRD2_yfVmPDGZfiqMq6Cg-iMlT3CWY,22184
20
20
  plain/observer/templates/toolbar/observer.html,sha256=uaDKiWR7EYqC1kEXE-uHDlE7nfFEMR_zmOgvlKwQHJ4,1365
21
21
  plain/observer/templates/toolbar/observer_button.html,sha256=xsHJSuOjW6ddnxlPlPKek22WrWnuVYGIcBfFdkb76pk,1199
22
- plain_observer-0.2.0.dist-info/METADATA,sha256=8ZtRPghSC480Xb44R7nWlM3KWAfwWUH1vbt3v1CTWrg,429
23
- plain_observer-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
- plain_observer-0.2.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
25
- plain_observer-0.2.0.dist-info/RECORD,,
22
+ plain_observer-0.3.0.dist-info/METADATA,sha256=BalQVNKI9YklCQFin2uWiQG-hsF3YCjn_TeyFj3sr1o,429
23
+ plain_observer-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
24
+ plain_observer-0.3.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
25
+ plain_observer-0.3.0.dist-info/RECORD,,