collavre 0.2.2 → 0.2.3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5c931501423b83339fe8760249bae4ff611eb1ab835167dade3a6d8ee587630
|
|
4
|
+
data.tar.gz: dd34bc4c214b8a5df3cbfd189ca3dd22aa47fcf22eaa4974a63fd23b2bc8754a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ada88101f9013822d0aa944d16b040db4e2ce954fc1c5fd055c391a222a273d3e469a99c7f7ab255bc5ad2bc149e93dd72cdf3d597f49957ae825d3fd93fa89a
|
|
7
|
+
data.tar.gz: be1b0f2704a49f5cf446f639dc197d0d69fef529595e2b4a46401a4caa801c5ac44cb1df2a14799ee043e7021648f495ff41e16133b2a0a9936e7542f5af0b1e
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class AddPositionToTopics < ActiveRecord::Migration[8.1]
|
|
2
|
+
def change
|
|
3
|
+
add_column :topics, :position, :integer, default: 0, null: false
|
|
4
|
+
|
|
5
|
+
# Set position based on created_at order for existing topics
|
|
6
|
+
reversible do |dir|
|
|
7
|
+
dir.up do
|
|
8
|
+
# Group topics by creative_id and set position based on created_at order
|
|
9
|
+
execute <<-SQL
|
|
10
|
+
UPDATE topics
|
|
11
|
+
SET position = (
|
|
12
|
+
SELECT COUNT(*)
|
|
13
|
+
FROM topics t2
|
|
14
|
+
WHERE t2.creative_id = topics.creative_id
|
|
15
|
+
AND t2.created_at < topics.created_at
|
|
16
|
+
)
|
|
17
|
+
SQL
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
add_index :topics, [ :creative_id, :position ]
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/collavre/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: collavre
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Collavre
|
|
@@ -563,6 +563,9 @@ files:
|
|
|
563
563
|
- db/migrate/20260131100000_migrate_active_storage_attachment_record_types.rb
|
|
564
564
|
- db/migrate/20260201100000_make_google_event_id_nullable.rb
|
|
565
565
|
- db/migrate/20260202150000_add_gateway_url_to_users.rb
|
|
566
|
+
- db/migrate/20260203002637_add_requires_approval_to_mcp_tools.rb
|
|
567
|
+
- db/migrate/20260203002643_add_pending_tool_call_to_tasks.rb
|
|
568
|
+
- db/migrate/20260203083302_add_position_to_topics.rb
|
|
566
569
|
- lib/collavre.rb
|
|
567
570
|
- lib/collavre/configuration.rb
|
|
568
571
|
- lib/collavre/engine.rb
|