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

Feat/remove private org #1641

Closed

Conversation

AVtheking
Copy link
Contributor

What kind of change does this PR introduce?
Removes support for private organizations

Issue Number:

Fixes #1604

Did you add tests for your changes?
NO

Have you read the contributing guide?
Yes

@AVtheking AVtheking requested a review from palisadoes as a code owner January 6, 2024 14:54
Copy link

github-actions bot commented Jan 6, 2024

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 these 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
  3. Merge conflicts

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

CONTRIBUTING.md

Read our CONTRIBUTING.md file. Most importantly:

  1. PRs with issues not assigned to you will be closed by the reviewer
  2. Fix the first comment in the PR so that each issue listed automatically closes

Other

  1. 🎯 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.
  2. Read the CONTRIBUTING.md file make

Copy link

codecov bot commented Jan 6, 2024

Codecov Report

Attention: 86 lines in your changes are missing coverage. Please review.

Comparison is base (c0468a4) 98.17% compared to head (35a84e3) 97.49%.
Report is 125 commits behind head on develop.

❗ Current head 35a84e3 differs from pull request most recent head 320486e. Consider uploading reports for the commit 320486e to get more accurate results

Files Patch % Lines
src/utilities/PII/decryption.ts 0.00% 17 Missing ⚠️
src/resolvers/Mutation/updateUserProfile.ts 70.90% 1 Missing and 15 partials ⚠️
src/resolvers/middleware/currentUserExists.ts 45.83% 13 Missing ⚠️
src/utilities/PII/encryption.ts 0.00% 13 Missing ⚠️
src/utilities/PII/isAuthorised.ts 0.00% 11 Missing ⚠️
src/resolvers/Mutation/createPost.ts 86.95% 6 Missing ⚠️
...tilities/encodedVideoStorage/uploadEncodedVideo.ts 96.29% 3 Missing ⚠️
src/resolvers/Mutation/removeAdvertisement.ts 92.85% 2 Missing ⚠️
...c/resolvers/Query/postsByOrganizationConnection.ts 33.33% 2 Missing ⚠️
src/resolvers/Subscription/onPluginUpdate.ts 0.00% 2 Missing ⚠️
... and 1 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1641      +/-   ##
===========================================
- Coverage    98.17%   97.49%   -0.69%     
===========================================
  Files          184      214      +30     
  Lines        10767    12948    +2181     
  Branches       835     1041     +206     
===========================================
+ Hits         10571    12624    +2053     
- Misses         186      294     +108     
- Partials        10       30      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@palisadoes
Copy link
Contributor

Merge your code with the latest upstream.

None of the files in the .gitHub directory must be included in this PR. It is out of scope

@palisadoes
Copy link
Contributor

The INSTALLATION.md file must not be included in this PR. It is out of scope

palisadoes and others added 15 commits January 6, 2024 23:23
* Replace package vm2 with isolated-vm (PalisadoesFoundation#1532)

* Replace package vm2 with isolated-vm

* Removed package isolated-vm

* Remove unused packages from package.json

* Updated Package.json for failing tests
…doesFoundation#1573)

* setup script will now ask for superAdmin email

* asked changes

* Update setup.ts

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit

* new commit
…lisadoesFoundation#1569)

* feat: Updated the LAST_RESORT_SUPERADMIN_EMAIL logic during setup

* Updated the logic to check superadmin

* fix: Resolved a bug in updating the LAST_RESORT_SUPERADMIN_EMAIL logic
* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc
…ation#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…oesFoundation#1615)

Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.1 to 2.29.1.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](import-js/eslint-plugin-import@v2.28.1...v2.29.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ion#1613)

Bumps [nodemailer](https://github.com/nodemailer/nodemailer) and [@types/nodemailer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nodemailer). These dependencies needed to be updated together.

Updates `nodemailer` from 6.9.6 to 6.9.8
- [Release notes](https://github.com/nodemailer/nodemailer/releases)
- [Changelog](https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md)
- [Commits](nodemailer/nodemailer@v6.9.6...v6.9.8)

Updates `@types/nodemailer` from 6.4.13 to 6.4.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nodemailer)

---
updated-dependencies:
- dependency-name: nodemailer
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: "@types/nodemailer"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dation#1612)

Bumps [@types/bcryptjs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bcryptjs) from 2.4.5 to 2.4.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bcryptjs)

---
updated-dependencies:
- dependency-name: "@types/bcryptjs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Veer0x1 and others added 6 commits January 6, 2024 23:23
* Standardized the location of assets used in markdown files.

* git ignoring the markdown assets

* ignoring the sub directories

* removed public/markdown/*
* fixed cross origin to access images

* fixed sample test

---------

Co-authored-by: arpitannd <[email protected]>
@xoldd
Copy link
Contributor

xoldd commented Jan 6, 2024

@palisadoes is a public organization an organization that is publicly available for searching, but it cannot be joined without approval of the admins?

package.json Outdated
@@ -48,6 +48,7 @@
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/utils": "^10.0.11",
"@types/graphql-upload": "^16.0.5",
"@types/jwt-decode": "^3.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

get rid of this, jwt-decode provides its own type definitions

visibleInSearch: {
type: Boolean,
},
// visibleInSearch: {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the code instead of just commenting it, same goes all the instances in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed the code

Veer0x1 and others added 9 commits January 7, 2024 00:07
* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc
* Added script to generate table of content

* git hook to generate toc when markdown files are changed.

* script for toc
…ation#1616)

Bumps [@types/i18n](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/i18n) from 0.13.8 to 0.13.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/i18n)

---
updated-dependencies:
- dependency-name: "@types/i18n"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
const filePath = path.join(directory, file);

// Generating the table of contents
execSync(`markdown-toc -i ${filePath}`);

Check warning

Code scanning / CodeQL

Shell command built from environment values Medium

This shell command depends on an uncontrolled
absolute path
.
@AVtheking AVtheking closed this Jan 6, 2024
@AVtheking AVtheking deleted the feat/remove_private_org branch January 6, 2024 18:58
@AVtheking
Copy link
Contributor Author

I have created another pr for this please review that

@palisadoes
Copy link
Contributor

No. This PR must remain.

We have a history here and we now need to find reviewers again.

It is also against the correct branch.

Please be considerate of our volunteers time.

There is no reason to choose this at all

@palisadoes
Copy link
Contributor

palisadoes commented Jan 6, 2024

I'm reopening and closing whichever one you reopen.

This is in such bad form.

Please do not do this again. Our videos expressly explain why this is a bad idea

@AVtheking
Copy link
Contributor Author

Sorry sir for the inconveniences but because of the huge no of conflicts I have to delete and re upload the branch, that's why I have raised another pr

@palisadoes
Copy link
Contributor

Sorry sir for the inconveniences but because of the huge no of conflicts I have to delete and re upload the branch, that's why I have raised another pr

You could still do it with the existing PR and branch.

I'll reopen it soon

@AVtheking
Copy link
Contributor Author

Ok sir

@Cioppolo14
Copy link
Contributor

@AVtheking We cannot reopen the PR. Please open a new one, and then do not close it. Do not close a PR in the future unless your reviewers explicitly request that. This has created a lot of extra work for our team.

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.

10 participants