Commit Graph

10867 Commits

Author SHA1 Message Date
Nikhil
22df0ecdc6 [WEB-4638] feat: command to fix duplicate issue sequences in workspace (#3882) 2025-08-11 18:44:49 +05:30
Nikhil
1c4a523f8a chore: update lxml and xmlsec versions in base requirements (#3883) 2025-08-11 17:58:08 +05:30
Akshita Goyal
50eec5850e [WEB-4659] chore: added enable/disable option for ai features (#3873)
* chore: added enable disable for ai features

* fix: copy

* fix: toast message

* fix: added translations + tracker elements
2025-08-11 15:43:43 +05:30
sriram veeraghanta
2044f5521e Sync: Community Changes #3876 2025-08-11 01:10:36 +05:30
Sriram Veeraghanta
8dd4fee0be fix: merge conficts 2025-08-11 01:09:41 +05:30
Sangeetha
1ef30746a2 [WEB-4657] refactor: optimize project v2 endpoint and issue detail endpoint #7558 2025-08-11 00:56:15 +05:30
Sriram Veeraghanta
e3deeb2b43 fix: minor wrapper order in provider 2025-08-11 00:55:11 +05:30
sriram veeraghanta
62f85b8271 Sync: Community Changes #3875 2025-08-11 00:52:04 +05:30
Sriram Veeraghanta
2ff4107da5 fix: merge conflicts 2025-08-11 00:48:21 +05:30
Anmol Singh Bhatia
37a844374e [WEB-4654] refactor: replace nprogress with bprogress and clean up unused code (#3869)
* refactor: replace nprogress with bprogress and clean up unused code

* chore: code refactor

* chore: code refactor

* chore: nprogress to bprogress migration ee changes
2025-08-11 00:37:58 +05:30
Anmol Singh Bhatia
736296090e [WEB-4654] refactor: replace nprogress with bprogress and clean up unused code (#7559)
* refactor: replace nprogress with bprogress and clean up unused code

* chore: code refactor

* chore: code refactor
2025-08-11 00:37:35 +05:30
Henit Chobisa
7099972b57 [SILO-442] fix: removed root directory unnecessary checks #3874 2025-08-08 20:08:28 +05:30
sriramveeraghanta
5483690d17 feat: make outbox table initiator id to null 2025-08-08 20:07:40 +05:30
Bavisetti Narayan
d51597c87c chore: reverted the module activity (#3872) 2025-08-08 18:09:39 +05:30
sriram veeraghanta
693aabfbd6 feat: adding pi enabled to workspace features (#3870) 2025-08-08 17:58:49 +05:30
Nikhil
eef03e671e [WEB-4238] feat: event stream implementation (#3684)
* Pgtrigger and Outbox prototype

* feat: add event stream app with models and migrations

- Introduced the event_stream app with initial models: Outbox and IssueProxy.
- Implemented a PostgreSQL trigger for logging updates to issues.
- Added necessary migrations and updated settings to include the new app.

* refactor: migrate event publisher to event stream

- Updated imports in test files to reflect the new event_stream app structure.
- Removed the event_publisher app, including its models, migrations, and tests.
- Introduced MemorySafeOutboxEventListener and related service for handling outbox events.
- Added management command for starting the outbox event listener with memory safety.
- Implemented PostgreSQL triggers for outbox notifications in the new event_stream app.

* refactor: enhance issue serializer and event stream models

- Updated IssueSerializer and IssueCreateSerializer to manage assignees and labels more efficiently by calculating additions and removals instead of deleting all and re-adding.
- Introduced new proxy models for CycleIssue and ModuleIssue with corresponding PostgreSQL triggers for event handling.
- Refactored Outbox model to include entity type and ID for better event tracking.
- Removed outdated IssueProxy model and its associated triggers, streamlining the event stream architecture.

* chore: update base requirements for OpenSearch and add pika for RabbitMQ

- Retained django-opensearch-dsl version 0.7.0 in requirements.
- Added pika version 1.3.2 for RabbitMQ integration.

* refactor: update import paths for event stream listener

- Changed import statements in test_competitive_listeners.py, service.py, and listen_outbox_events.py to reflect the new module structure by removing the 'apiserver' prefix.

* feat: implement PostgreSQL LISTEN/NOTIFY listener for outbox events

- Added DatabaseConnection class to manage psycopg3 connections for LISTEN/NOTIFY.
- Introduced NotificationListener class to handle PostgreSQL NOTIFY messages and dispatch them to registered handlers.
- Updated Command class to utilize NotificationListener for listening to outbox events, replacing the previous restartable listener implementation.
- Improved error handling and logging throughout the listener process.

* feat: enhance event processing with advisory locks

- Implemented advisory lock mechanism to prevent concurrent processing of events.
- Added methods to acquire and release advisory locks in the DatabaseConnection class.
- Updated root_handler to fetch complete outbox data and mark events as processed only if all handlers succeed.
- Improved error handling and logging for event processing.

* fix: improve event logging and error handling in NotificationListener

- Updated event logging to include event ID for better traceability.
- Enhanced error handling in the command's handle method to log exceptions and maintain robustness during event listening.

* feat: add memory monitoring and auto-restart functionality to event listener

- Introduced MemoryMonitor class to track memory usage and event processing counts.
- Implemented automatic restarts for the NotificationListener based on memory and event limits.
- Enhanced command line options to configure memory limits, event limits, and memory check intervals.
- Improved logging for memory stats and event processing to aid in monitoring and debugging.

* feat: update local and production settings for event logging

- Introduced logging configuration for 'plane.event_stream' in both local and production settings to enhance event logging capabilities.

* chore: Implement async outbox polling mechanism with memory monitoring and event handling. Add management command for outbox poller and create necessary database migrations for outbox triggers and indexes.

* docs: Add comprehensive README for Event Stream system detailing architecture, components, configuration, usage, and performance tuning.

* feat: Enhance MongoDB integration with a singleton connection manager and implement outbox cleanup task for migrating records from PostgreSQL to MongoDB

* feat: Add asyncio support for tests and new test files for outbox polling

* Merge branch 'event-stream' of github.com:makeplane/plane-ee into event-stream

* refactor: Update event types in outbox triggers for cycle, issue, and module models; add IssueComment, IssueLink, and IssueRelation proxies with corresponding triggers

* refactor: Update import paths for JsonFormatter and consolidate OpenFeature imports; add unit tests for OutboxPoller and related classes

* refactor: Replace all_objects with objects in Outbox queries and update test fixtures for outbox records

* feat: Add daily outbox cleaner task to Celery and update type hint for MongoDB collection

* refactor: Enhance memory monitoring and outbox polling logic with improved logging and delay handling

* feat: Implement outbox triggers for issue, issue attachment, issue link, and issue relation models with dynamic event type determination

* chore: Remove obsolete files related to multiple listeners and competitive processing tests

* Delete service.py

* feat: Add outbox poller script to manage database migrations and process events with configurable parameters

* refactor: Optimize EpicCreateSerializer to handle initiative, assignee, and label updates with conflict management and improved logic for adding/removing related entities

* feat: Update issue proxy triggers for outbox events

- Removed the existing 'issue_outbox_update' trigger from the IssueProxy model.
- Added a new 'issue_outbox_update' trigger with enhanced logic to handle conversion events when the issue type changes.
- The new trigger captures updates and soft deletes, inserting appropriate events into the outbox.

* feat: Refactor issue proxy triggers and add new outbox event handling

- Removed and replaced existing triggers for IssueProxy, IssueAssigneeProxy, IssueLabelProxy, CycleIssueProxy, and ModuleIssueProxy.
- Introduced new triggers to handle outbox events for various issue-related actions, including creation, updates, and deletions.
- Enhanced logic for event type determination based on issue type, ensuring accurate event handling in the outbox.

* refactor: Update serializers to use ID fields for assignees and labels

- Changed the handling of assignees and labels in IssueCreateSerializer and EpicCreateSerializer to use ID fields instead of object references.
- Improved logic for determining assignees and labels to add or remove by using lists of IDs.
- Enhanced code readability with comments explaining the changes.

* feat: Enhance issue event handling in outbox triggers

- Updated triggers for IssueProxy, IssueAssigneeProxy, and IssueLabelProxy to determine event types based on issue type, including handling for epics.
- Introduced filtered data for outbox events to exclude description fields, improving data integrity and reducing unnecessary payload size.
- Enhanced logic for detecting changes during updates, ensuring only relevant changes are captured and processed.

* feat: implement connection pooling for outbox poller

- Introduced DatabaseConnectionPool class to manage async connection pooling using psycopg_pool.
- Enhanced outbox polling logic to utilize connection pooling for improved performance and resource management.
- Added health check and statistics retrieval methods for the connection pool.
- Updated outbox model and migration to include claimed_at field for better event tracking.
- Refactored tests to validate new connection pooling functionality.

* refactor: move MongoConnection to a new settings module and update imports

- Created a new mongo.py file to define the MongoConnection class for managing MongoDB connections.
- Updated the import path in outbox_cleaner.py to reference the new MongoConnection location.

* refactor: update import path for MongoConnection in outbox_cleaner.py

* chore: remove scout_apm from production settings and requirements

- Deleted scout_apm from the installed apps in production.py.
- Removed scout-apm dependency from base.txt requirements.

* feat: add claimed_at field to outbox events and update requirements

- Added claimed_at field to the outbox event model for enhanced event tracking.
- Updated outbox poller to handle claimed_at in event processing.
- Included django-pgtrigger in base.txt requirements for database trigger management.

* feat: enhance memory monitoring in outbox poller

- Updated MemoryMonitor to signal for restarts instead of exiting on memory limit exceedance.
- Added methods to check for restart requests and wait for restart signals.
- Improved outbox poller logic to handle memory monitoring more gracefully during processing.
- Ensured all claimed rows are processed before initiating a restart.

* feat: implement graceful shutdown handling in outbox poller

- Added GracefulShutdownHandler class to manage shutdown signals (SIGTERM, SIGINT, SIGQUIT).
- Integrated shutdown handling into the outbox poller to allow for graceful exits during processing.
- Updated polling logic to check for shutdown requests and clean up resources accordingly.
- Enhanced command help text to reflect new signal handling capabilities.

* Enhance outbox event handling by adding workspace and project IDs

- Updated the outbox cleaner to include `workspace_id` and `project_id` in the deletion process.
- Modified the outbox poller to handle new fields in event processing.
- Adjusted models and migrations to support the new fields in the outbox table.
- Updated tests to ensure proper handling of workspace and project IDs in outbox records.

* Merge branch 'preview' of github.com:makeplane/plane-ee into event-stream

* feat: add initiator_id field to Outbox model and update migration dependencies

* feat: add initiator_id to Outbox insertions across event stream models

- Updated Outbox insert statements in various models to include initiator_id.
- Adjusted related logic in CycleIssueProxy, IssueProxy, ModuleIssueProxy, and others to ensure proper tracking of the user initiating changes.
- Enhanced event handling for soft deletes and regular updates to maintain consistency in data tracking.

* feat: include initiator_id in OutboxEvent model and database interactions

- Added initiator_id field to the OutboxEvent model for enhanced tracking.
- Updated database queries in outbox_poller.py to include initiator_id in insertions.
- Ensured consistency in data handling across event stream components.

* refactor: update handle_row function to use OutboxEvent model

- Changed the parameter type of handle_row from Dict to OutboxEvent for better type safety.
- Updated logging to utilize the to_dict method of OutboxEvent for consistent event data representation.

* feat: enhance Outbox model with initiator type and update related logic

- Added initiator_type field to the Outbox model to track the type of event initiator.
- Introduced InitiatorTypes enum for better clarity and management of initiator types.
- Updated OutboxEvent model and related methods to include initiator_type for consistent event data representation.
- Adjusted database interactions across event stream models to accommodate the new initiator_type field.

* feat: add initiator_type to Outbox insertions across event stream models

- Updated Outbox insert statements in various models to include initiator_type for better tracking of event initiators.
- Adjusted related logic in CycleIssueProxy, IssueProxy, ModuleIssueProxy, and others to ensure consistent handling of initiator_type during event processing.
- Enhanced event handling for both soft deletes and regular updates to maintain data integrity and tracking.

* feat: update event stream triggers to use After timing for improved consistency

- Changed trigger timing from Before to After for various event stream models including CycleIssueProxy, IssueProxy, and IssueAssigneeProxy to ensure that outbox updates reflect the final state of the entities.
- Enhanced logic in triggers to include previous attributes for better tracking of changes during updates.
- Adjusted related logic in IssueLabelProxy and IssueCommentProxy to maintain consistency across event handling.

* feat: enhance bulk update task with transaction management and initiator type

- Wrapped bulk creation of issue relations and parent ID updates in a transaction to ensure atomicity.
- Set the initiator type to 'SYSTEM.IMPORT' for both bulk creation and updates to improve tracking of operations.
- Improved database interaction by using a connection cursor for executing SQL commands.

---------

Co-authored-by: Dheeraj Kumar Ketireddy <dheeru0198@gmail.com>
2025-08-08 17:33:05 +05:30
Bavisetti Narayan
5b65d15436 [WEB-4393] feat: recurring work item (#3668)
* chore: crud operations for recurring work item

* chore: added perodic task for recurring work item

* chore: removed the error statement

* fix: bg task for labels

* chore: added recurring work item model

* chore: added null field for recurring work item log

* feat: recurring work items UI

* chore: added activities for recurring task

* feat: add interval type to recurring work item form

* chore: updated the cront expression

* chore: minor updates for recurring work item serializer and interval type

* chore: removed the seconds calculation

* chore: added task fk to activity table

* improvement: interval dropdown width

* fix: start date validation

* chore: added created at for activity

* feat: add recurring work item activity logic

* chore: updated the migration file

* chore: update the activity for recursive task

* chore: deleteing the recurring task permanantely

* improvement: recurring work item activity helpers

* fix: recurring work item custom properties data preloading

* improvement: minor UI enhancements

* improvement: recurring work item activity helpers

* fix: init loader logic

* Use the right field namewhile creating activity

* chore: add hourly and minutly interval types for testing

* Added test intervals for debugging

* chore: update the periodic task to set null

* chore: added activity for recurring work item properties

* chore: updated the description activity

* chore: removed the fields

* chore: updated the type activity

* chore: added property in the model

* remove temporary minutly and hourly interval types from recurring work items

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: Dheeraj Kumar Ketireddy <dheeru0198@gmail.com>
2025-08-08 16:21:22 +05:30
guru_sainath
fd9fbb426d [MOBIL-1094] dev: Handle intake work item detail retrieval using work item ID #3838 2025-08-08 00:50:40 +05:30
guru_sainath
c7c66fec2d [MOBIL-1096] dev: Implement intake search functionality #3837 2025-08-08 00:50:19 +05:30
guru_sainath
95b791ed93 [MOBIL-1095] fix: Resolve intake filters by updating relation key #3836 2025-08-08 00:49:56 +05:30
Surya Prashanth
cf543807ac [SILO-437] chore: fix types for external apis (#3839) 2025-08-08 00:49:36 +05:30
Vamsi Krishna
995c17c645 [WEB-4641]chore: storing app rail preference in backend (#3850)
* chore: add functionality to store app rail preference in backend

* chore: updated toggle handler

* chore: user update refactor

* chore: moved app rail toggle to me/profile endpoint
2025-08-08 00:18:04 +05:30
guru_sainath
1db6eebcf7 [MOB-1094] dev: Update iOS deep links configuration and handling (#3864)
* dev: updated the permission links for deeplink permissions

* dev: updated app site association
2025-08-08 00:15:38 +05:30
sriram veeraghanta
a6173fc842 feat: include celery importers queue (#3865) 2025-08-07 23:51:33 +05:30
Vamsi Krishna
53aa2feec0 [WEB-4609]fix: email template logo width #3860 2025-08-07 17:43:16 +05:30
sriramveeraghanta
7bb466caa6 fix: remove unused packages 2025-08-07 15:36:34 +05:30
Vamsi Krishna
c8cad59f7e [WEB-4625] fix: fixed loader position for pages #3858 2025-08-07 13:53:05 +05:30
sriram veeraghanta
20c9701a92 Sync: Community Changes #3857 2025-08-07 01:11:32 +05:30
Anmol Singh Bhatia
0f10e9574c fix: build error 2025-08-07 01:10:34 +05:30
Anmol Singh Bhatia
491b4ea9bb fix: sync merge conflict 2025-08-07 00:38:25 +05:30
Akshita Goyal
d0de29e70c [PAI-652]: chore refactor pi sse (#3830)
* chore: Handled SSE using EventSource

* fix: handled scroll button

* fix: filter css

* fix: removed additional handling

* fix: tables in markdown
2025-08-07 00:06:34 +05:30
Akshita Goyal
fd8c7c1cf6 [WEB-4642] fix: sidebar item refactor (#3835)
* fix: sidebar item refactored

* fix: abstracted sidebar-item redundant code
2025-08-07 00:06:12 +05:30
Anmol Singh Bhatia
3cdd83a827 [WEB-4488] chore: plane logo updated #3853 2025-08-07 00:05:45 +05:30
Anmol Singh Bhatia
bc9b958daf [WEB-4551] fix: disabled workspace layout (#3854)
* fix: disabled workspace layout

* chore: code refactor
2025-08-07 00:05:18 +05:30
Vipin Chaudhary
5baa6d92f6 [WIKI-583] : Fix math HTML parser (#3855)
* fix: block html parser

* ui : add scroll bar

* refactor: fix id

* fix : uuid

* fix : remove extra padding
2025-08-07 00:05:01 +05:30
Vamsi Krishna
9de5b1a009 [WEB-4634]chore: refactor for work items store (#7538)
* chore: refactor for work items store

* chore: updated conditions order
2025-08-06 22:44:33 +05:30
Anmol Singh Bhatia
21c59692f9 [WEB-4635] fix: space auth screen re-loading issue (#7551)
* fix: prevent auth redirect on window focus

* fix: space auth screen re-loading issue.

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2025-08-06 22:32:52 +05:30
Vamsi Krishna
806619d73f [WEB-4645]chore: added event trackers for labels #7552 2025-08-06 22:29:55 +05:30
Anmol Singh Bhatia
c5e5454265 [WEB-4650] fix: email template logo updated #7553
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2025-08-06 22:27:59 +05:30
Akshita Goyal
3972b6639f [WEB-4632] fix: sidebar item refactored #7539 2025-08-06 22:26:47 +05:30
Anmol Singh Bhatia
51e146f8ca [WEB-4488] feat: brand revamp (#7544)
* chore: empty state asset and theme improvement (#7542)

* chore: empty state asset and theme improvement

* chore: upgrade modal improvement and code refactor

* feat: onboarding revamp and theme changes (#7541)

* refactor: consolidate password strength indicator into shared UI package

* chore: remove old password strength meter implementations

* chore: update package dependencies for password strength refactor

* chore: code refactor

* chore: brand logo added

* chore:  terms and conditions refactor

* chore: auth form refactor

* chore: oauth enhancements and refactor

* chore: plane new logos added

* chore: auth input form field added to ui package

* chore: password input component added

* chore: web auth refactor

* chore: update brand colors and remove onboarding-specific styles

* chore: clean up unused assets

* chore: profile menu text overflow

* chore: theme related changes

* chore: logo spinner updated

* chore: onboarding constant and types updated

* chore: theme changes and code refactor

* feat: onboarding flow revamp

* fix:  build error and code refactoring

* chore: code refactor

* fix: build error

* chore: consent option added to onboarding and code refactor

* fix: build fix

* chore: code refactor

* chore: auth screen revamp and code refactor

* chore: onboarding enhancements

* chore: code refactor

* chore: onboarding logic improvement

* chore: code refactor

* fix: onboarding pre release improvements

* chore: color token updated

* chore: color token updated

* chore: auth screen line height and size improvements

* chore: input height updated

* chore: n-progress theme updated

* chore: theme and logo enhancements

* chore: space auth and code refactor

* chore: update new brand empty states (#7543)

* [WEB-4585]chore: branding updates (#7540)

* chore: updated logo, og image, and loaders

* chore: updated branding colors

* chore: tour modal logo

* chore: updated logo spinner size

* chore: updated email templates logos and colors

* chore: code refactor

* fix: removed conditional hook render

* fix: space app loader

---------

Co-authored-by: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com>
Co-authored-by: vamsikrishnamathala <matalav55@gmail.com>
2025-08-06 22:24:47 +05:30
Bavisetti Narayan
b5ebf625ee [WEB-4393] chore: added recurring work item activity model (#3847)
* chore: added recurring work item activity model

* chore: added a better description
2025-08-06 19:52:17 +05:30
Henit Chobisa
0a6f160530 chore: bumped up fiber version for vulnerability (#3852) 2025-08-06 15:42:22 +05:30
Vipin Chaudhary
bcea9a66ab [WIKI-485] refactor: remove upgrade button (#3851)
* refactor:remove upgrade button

* refactor: remove slash command
2025-08-06 15:32:16 +05:30
sriram veeraghanta
4ddb2ddb88 [PRIME-16] fix: update register instance command to use app version from ENV #3848 2025-08-06 00:39:57 +05:30
Nikhil
fc25ed6012 [WEB-4638]feat: add management command to fix duplicate issue sequences in a project #3843 2025-08-06 00:00:50 +05:30
Akshita Goyal
e0e16e24bf [PAI-666] feat: added favorite + rename + delete options for pi #3846 2025-08-05 23:47:03 +05:30
Vipin Chaudhary
7eb91397b0 [WIKI-485] feat: math extension (#3639)
* feat: math extension base setup

* refactor: update math components

* feat: feature flag math extension

* refactor: rename

* fix : handle selection

* refactor: update styles

* refactor: update types

* refactor: math extension namings

* refactor: math extension

* refactor : remove flagged state

* feat: feature flagged

* feat: update upgrade modal

* refactor : upgrade modal hook

* fix : conflict

* chore: enable for testing

* refactor : math node view

* refactor : changes files name

* refactor : better name for katexDiv

* refactor : rename content

* fix :feature flag

* refactor : add types

* refactor: change files names

* refactor : update extension name

* refactor : math attribute

* refactor : input rules

* refactor : math commands

* refactor : rename commands

* refactor: input modal

* refactor : add input types

* refactor : create math input

* refactor: mathematics extension

* refactor : math extension names

* styles : add shrink

* refactor : math extension folder structure

* refactor: extension rename

* refactor : names

* refactor: update types

* refactor: comments

* feat: copy paste markdown handler

* feat: space feature flag

* feat: handle copy paste

* refactor: update math tags

* fix: loading katex css and repeated validations

* refactor: update math modal logic

* refactor: update floating modal

* refactor : remove unused code

* chore : remove logs

* feat: add transition  in modal

* refactor : remove unused attrs

* feat: add check for last node

* refactor : block math

* fix : dev wiki

* feat: handle preview

* refactor : flags

* refactor: editor container

* refactor: update storage

* refactor : remove hover logic

* refactor : remove floating container

* refactor: floating UI

* refactor: remove onClick handler

* refactor : add import comments

* refactor: update storage type

* refactor: update names

* refactor: update default flagging

* refactor :types

* refactor : update storage method

* refactor : update types

* --wip-- [skip ci]

* refactor: update disabled extension

* refactor: remove core changes

* refactor: remove rich disabled

* refactor : remove wiki changes

* feat: add check for editable editor

* chore: update styles based on editable

* refactor : update types

* feat: fix block view padding

* refactor: update upgrade modal text

* feat: handle inline block styles

* refactor: use call back for memo

* refactor: update styles

* refactor: update slash command

* refactor: make input row bigger

* refactor: update types

* refactor : update upgrade content

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
2025-08-05 23:45:48 +05:30
Henit Chobisa
9c0831e17e [SILO-438] fix: slack plane logo changed to plane media logo #3844 2025-08-05 20:22:32 +05:30
Anmol Singh Bhatia
c6e27ab19e [WEB-4629] chore: button disabled state and user avatar theme (#3840)
* chore: button disabled state updated

* chore: beta badge updated

* chore: code refactor
2025-08-05 18:04:40 +05:30