* feat: implement a generic oauth module for all callbacks
- Strategy based pattern to implement OAuth callbacks for any
third party integration
- Implement strategy for Plane's internal OAuth
- Add endpoint for fetching app installations
* add missing fields for integration helper in github controller
* pass client id, secret to strategy during init
* revert conflict changes
* use getPlaneAPIClient for consistency
* [SILO-142] Setup base for linear docs importer (#2934)
* feat: added page external api endpoint for creating and getting pages
* feat: added pages inside migration task
* feat: added pull documents and transform document functions inside linear
* feat: added pages inside generated payload pushed to queue
* feat: added separate job as linear_docs migrator
* fix: formatting
* fix: data_import_task broken to separate functions
* fix: separated github content-parser with linear content-parser
* fix: remove not existing page logic in process page
* fix: data import task to bulk create pages
* [SILO-145] feat: adding extendable content-parser for silo, supporting linear docs importer 🤠 (#2966)
* feat: added pages inside migration task
* feat: added pull documents and transform document functions inside linear
* feat: added pages inside generated payload pushed to queue
* feat: added separate job as linear_docs migrator
* fix: formatting
* fix: data_import_task broken to separate functions
* fix: separated github content-parser with linear content-parser
* feat: added content parser runner class and external parser extensions
* feat: added plane extension for plane side of parsing
* feat: added base-file-extension helper
* feat: added linear specific extensions and parser getter
* feat: modified linear transform and api service
* fix: modified base et for handling content-parsers opts
* fix: removed extra functions from image proxy extension
* fix: renamed to file-upload-helper
* fix: comments for processorts
* fix: moved get issue function inside mention parser
* fix: logic optimization
* feat: added modules extension in content-parser
* fix: mentions parser to work with fallback options
* fix: update user map type for linear
* [SILO-154] Added Linear Docs as summary element and optimized summary endpoint (#3010)
* feat: modified issue count endpoint to data summary endpoint
* feat: modified store and UI to display summary fields
* chore: resolved comments
* [SILO-153] feat: dispatch finished & linear docs step bound with existing with linear issue import step (#3009)
* feat: modified import task and controller to add a dispatch job
* feat: modified base importer worker in order to accomodate finished step
* feat: modified linear importer in order to handle custom completion step for job
* chore: resolved comments
* [SILO-134] RUNWAY Implement new OAuth flow for Github integration (#3089)
* oauth helper service + db helpers + modify plane sdk to accomodate oauth token
* fix indentation + create util for remove undefined in object
* add fields to workspace credential for oauth adapt
* get oauth token helper method
* auth callback flow changes to add plane oauth flow for github integration
* integrate github user and auth callback with oauth
* add user callback support with oauth for github integration
* remove token from cache on app disconnection
* Get Connection Details refactor change
* remove unwanted logs
* add missing translations
* replace plane app client id and secret fetching from env to db
* fix app get from db
* refactoring and comments resolved
* rename installation_id to plane_installation_id
* use db query methods and complete the app secret fetch flow
* remove unwanted logs and send missing values in update creds method
* move plane app db call just before oauth token call + models export in init
* Fix ssl reject error for pg
* add NODE_ENV option for ssl db config + management command to reset app_secrets + iteration fix
* fix oauth rate limit cache key breaking
* Fix redirect uri issue
* Fix pull request behaviour
* remove NODE_ENV check in DB connection
* feat: added external api to get a specific user
* feat: added user information in front of comment if not present
* chore: reverted changes for apis
* fix: user actor from webhook for getting name
* fix: remove unused import
* fix: added null check
* fix: change variable name
* [SILO-189] feat: added UI for connecting slack channels to plane projects (#3080)
* feat: added endpoint for fetching project updates connections
* feat: added service function for getting projects updates connection
* chore: added translations for slack project updates page
* feat: added type for response from slack conversation
* feat: added controller methods for getting project connections and channels
* feat: added service methods and project connections manager into store
* feat: added form component for project updates modal
* feat: added main list component for project updates and connected to root
* fix: error translation
* feat: added handler to address project updates
* chore: resolved comments
* feat: backend changes for slack project updates (#3105)
* fix: translations for project updates (#3107)
* feat: added types to optimize channel endpoint (#3108)
* fix: modified connection details for addressing user credentials
* fix: modified refresh credentials handler to upsert user credentials
* fix: modified types for both user responses
* fix: refactored comment handler to user issue details function
* chore: resolved comments
* chore: added logs
* fix: segregated type for token refresh
* fix: added null for issue details helper
* feat: added new blocks interface to ephemeral message posting
* feat: modified connection details helper in order to user credentials
* feat: modified controller to include userMap array
* feat: added account connection blocks
* feat: added missing credentials check and posting a message for connection
* feat: modified slack connection store for passing apiToken for state
* fix: resolved comments
* feat: added blocker for link work item command
* change pr behaviour method to use entityconnections for right state mapping
* renames and sanitize + modify test for PR automation state update
* remove console logs
---------
Co-authored-by: Surya Prashanth <prashantsurya002@gmail.com>
* oauth helper service
* oauth helper service + db helpers + modify plane sdk to accomodate oauth token
* fix indentation + create util for remove undefined in object
* remove await in helper methods
* workspace credential helper methods
* remove workspace_id from get workspace entity connection helper
* Get Connection Details refactor change
* fix indentation
* fix extra lines in end of file
* refactored to move integration related types in their specific files
* add application id copy button
---------
Co-authored-by: Saurabhkmr98 <saurabhkapur73@gmail.com>
Co-authored-by: Saurabh Kumar <70131915+Saurabhkmr98@users.noreply.github.com>
* fix: made redis instance singleton for being used multiple places
* fix: remove disconnection on shutdown
* fix: consumers throw error in start
* fix: remove extra methods and connection status
* fix: remove graceful shutdown
* fix: refactored pull-request handler into common behaviour
* fix: refactored gitlab integration to use common pr behaviour
* chore: added test to support the pull request behaviour
* chore: transformed to composition from inheritance
* fix: PR comments
* fix: extended type annotations and behaviour