Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/multiple project trackers #55

Merged
merged 17 commits into from
Jan 6, 2024
Merged

Conversation

tuj
Copy link
Contributor

@tuj tuj commented Jan 2, 2024

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/181

Description

  • Adds support for multiple data providers.
  • Removed project creator for Jira.

Release

Migrate to new DataProvider model. The purpose of this is to couple the previous Jira data synchronizations to a
data provider in the new model.

  • Add a dataProvider for current Jira implementation with the command

    bin/console app:project-tracker:create

    Fill in the data from the .env.local values for the Jira connection:

    • Name: Jira
    • Url: JIRA_PROJECT_TRACKER_URL
    • Secret: JIRA_PROJECT_TRACKER_USER:JIRA_PROJECT_TRACKER_TOKEN
  • Run the following commands to set data_provider_id field in the database for existing synced entities.

    NB! Replace 1 with the relevant DataProvider.id if it differs from 1.

    bin/console doctrine:query:sql 'UPDATE account SET data_provider_id = 1';
    bin/console doctrine:query:sql 'UPDATE client SET data_provider_id = 1';
    bin/console doctrine:query:sql 'UPDATE issue SET data_provider_id = 1';
    bin/console doctrine:query:sql 'UPDATE project SET data_provider_id = 1';
    bin/console doctrine:query:sql 'UPDATE version SET data_provider_id = 1';
    bin/console doctrine:query:sql 'UPDATE worklog SET data_provider_id = 1';

Checklist

  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj marked this pull request as ready for review January 4, 2024 21:29
@tuj tuj requested a review from jeppekroghitk January 4, 2024 21:29
@tuj tuj self-assigned this Jan 5, 2024
@tuj tuj merged commit 491ebd7 into develop Jan 6, 2024
6 checks passed
@tuj tuj deleted the feature/multiple-project-trackers branch January 6, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants