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

Bug Fix: Adding back the plugin architecture logic for talawa app #1778

Closed

Conversation

SiddheshKukade
Copy link
Member

@SiddheshKukade SiddheshKukade commented Apr 14, 2023

What kind of change does this PR introduce?
Refactoring

Issue Number:

Fixes #1758

Did you add tests for your changes?
Not required.
Snapshots/Videos:

block diagram for overview:
image

Screenrecorder-2023-05-03-10-23-20-667.mp4

If relevant, did you update the documentation?
To make it work with mongoDB ,talawa-api , talawa-admin we have to firstly store some data in the db and then we can use the store further
The plugins collection should have follwing with proper orgIDs for testing puroposes:

 {
        "_id": "63929c1915ad470d13c3bcb6",
        "pluginInstallStatus": true,
        "pluginName": "Events",
        "pluginCreatedBy": " Mr. Siddhesh Bhupendra  Kukade",
        "pluginDesc":
            "Presenting the Events Plugin by Siddhesh Bhupendra Kuakde that implements the plugin features as a component here members can create and manage events and on top of it everything is controlled by the Organization Admins . Install and use right away.",
        "installedOrgs": [
          "62ccfccd3eb7fd2a30f41601",
          "62ccfccd3eb7fd2a30f41601",
          "<YOUR_ORG_ID_FOR_DEVELOPMENT>"
        ]
      },
      {
        "_id": "63929c1915ad470d13c3bcb6",
        "pluginInstallStatus": true,
        "pluginName": "Posts",
        "pluginCreatedBy": "Mr.Johnathan Doe ",
        "pluginDesc":
            "Presenting the Donation plugin for the talawa app that enables members of the organization to  do One time or Reccurinng donations to an  organization",
        "installedOrgs": [
          "62ccfccd3eb7fd2a30f41601",
          "62ccfccd3eb7fd2a30f41601",
          "<YOUR_ORG_ID_FOR_DEVELOPMENT>"
        ]
      },
      {
        "_id": "62cfcf71824dc26e1fbeed46",
        "pluginInstallStatus": true,
        "pluginName": "Donation",
        "pluginCreatedBy": "Kimia",
        "pluginDesc":
            "See all available organizations in entire world using this plugins",
        "installedOrgs": [
          "62ccfccd3eb7fd2a30f41601",
          "<YOUR_ORG_ID_FOR_DEVELOPMENT>"
        ]
      },
      {
        "_id": "62cfcf71824dc26e1fbeed46",
        "pluginInstallStatus": true,
        "pluginName": "Chats",
        "pluginCreatedBy": "Kimia",
        "pluginDesc":
            "See all available organizations in entire world using this plugins",
        "installedOrgs": [
          "62ccfccd3eb7fd2a30f41601",
          "<YOUR_ORG_ID_FOR_DEVELOPMENT>"
        ]
      }

Summary
Added the 15 sec delay to plugin calls and added back the previous deletions.

Does this PR introduce a breaking change?
No

Have you read the contributing guide?

Yes

@github-actions
Copy link

Our Pull Request Approval Process

We have these basic policies to make the approval process smoother for our volunteer team.

Testing Your Code

Please make sure your code passes all tests. Our test code coverage system will fail if either of these two conditions occur:

  1. The overall code coverage drops below the target threshold of the repository
  2. Any file in the pull request has code coverage levels below the repository threshold

The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing.

Reviewers

When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

Other

🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.

@literalEval
Copy link
Member

@palisadoes @SiddheshKukade please tag me once this is ready for review. Since I worked on refactoring, I can advise a thing or two in this PR. Thanks.

@palisadoes
Copy link
Contributor

Thanks for submitting your PR, but we must close it.

  1. We get notified of every event in the queue, and draft PRs like these, and their updates that require no action can be a distraction. We need our reviewers to focus on updates that are ready.
  2. Don't be discouraged, we are just trying to keep our workloads to a manageable level.

Please resubmit when you are ready.

@palisadoes palisadoes closed this Apr 14, 2023
@SiddheshKukade
Copy link
Member Author

@palisadoes Sir, sorry I wasn't aware about the notification thing.
I just opened the PR as draft to check for any CI/CD error that might occur.

It's alright, I'll figure out something else to check that 👍

@SiddheshKukade
Copy link
Member Author

@palisadoes, Sir the code for this is ready reviewed, please re-open this PR to see the latest commits.

@palisadoes palisadoes reopened this May 3, 2023
@palisadoes
Copy link
Contributor

Please remove the draft status from this PR.

@literalEval
Copy link
Member

@SiddheshKukade please have a look at the previously refactored code and bug fixes thoroughly, so that we don't reinvent the wheel :)

lib/views/main_screen.dart Show resolved Hide resolved
lib/views/main_screen.dart Show resolved Hide resolved
lib/main.dart Show resolved Hide resolved
lib/views/main_screen.dart Show resolved Hide resolved
@SiddheshKukade SiddheshKukade marked this pull request as ready for review May 3, 2023 16:26
@SiddheshKukade
Copy link
Member Author

@SiddheshKukade please have a look at the previously refactored code and bug fixes thoroughly, so that we don't reinvent the wheel :)

@literalEval I've already fetched everything latest from all the repos.

@literalEval
Copy link
Member

literalEval commented May 3, 2023

@SiddheshKukade don't mark reviews as resolved without the mentors and admins commenting on it.

@palisadoes please have a look at the reviews I have provided. Thanks

@SiddheshKukade
Copy link
Member Author

@DMills27 Sir, I would also like to your thoughts on this.

I've also updated the description with more details.

@SiddheshKukade SiddheshKukade changed the title Bug Fix: Adding back the plugin architecture logic for talawa app [Work in progress] Bug Fix: Adding back the plugin architecture logic for talawa app May 3, 2023
@palisadoes
Copy link
Contributor

@SiddheshKukade please get your mentors to review and approve this.

@SiddheshKukade
Copy link
Member Author

@SiddheshKukade please get your mentors to review and approve this.

@palisadoes Sure, Actually, some tasks were pending before this merged to avoid inconsistencies. I'll link them here 👍🏻

@palisadoes
Copy link
Contributor

  1. Have the dependencies for this PR been resolved?
  2. Should it be closed or should it be reviewed?

@literalEval
Copy link
Member

@palisadoes Since the plugin system is a GSoC project anyway, and since no project directly depends on this, I think instead of reintroducing the previous work, we can wait till @SiddheshKukade fixes everything this time, and close this PR without a merge.

@SiddheshKukade
Copy link
Member Author

@palisadoes sir, I'm having practical exams from the past 2 weeks. Due to that I had to take a break untill 3rd june. I have also discussed that with my mentor tasneem mam.
My other PRs need to be merged before this get merged to avoid inconsistencies.

I'll get started to complete that In a few days and there is no need to close the PR.
Thanks

@github-actions
Copy link

This pull request did not get any activity in the past 10 days and will be closed in 365 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.

@github-actions github-actions bot added the no-pr-activity No pull request activity label Jun 11, 2023
@palisadoes
Copy link
Contributor

@SiddheshKukade What should we do about this PR?

@palisadoes
Copy link
Contributor

@tasneemkoushar @DMills27 Please add your comments

@SiddheshKukade SiddheshKukade added wip Work in Progress area/performance pr/do-not-merge Can't merge due to merge-conflicts of files or a important review is required. and removed no-pr-activity No pull request activity labels Jun 11, 2023
@SiddheshKukade
Copy link
Member Author

@SiddheshKukade What should we do about this PR?

@palisadoes Sir, currently this should PR be kept on hold because merging this before resolving PalisadoesFoundation/talawa-api#1337 can create problem for other contributors for developing the app without having the basic plugin data in their database. Please wait until the PR for api#1337 is merged.

@SiddheshKukade
Copy link
Member Author

SiddheshKukade commented Jun 16, 2023

Update: I was thinking about adding the websockets logic (which is next step in my project ) in this PR
This will ensure that other contributors would not face any problems with their work regarding plugins.

So for that reason this pull request has to be kept open for a few more days.

Copy link
Member

@noman2002 noman2002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest everything looks good to me but Why the error is coming in the start of video ?

Comment on lines 8 to 11
FetchPluginList() {
print(
"Fetching pligins =================================================================");
fetchList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove print statements

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, actually I need to add the socket listeners ( GraphQL Subscriptions) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/do-not-merge Can't merge due to merge-conflicts of files or a important review is required. wip Work in Progress
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Bug Report: Adding back the plugin architecture logic for talawa app
4 participants