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/plugin install #69

Open
wants to merge 108 commits into
base: main
Choose a base branch
from
Open

Feat/plugin install #69

wants to merge 108 commits into from

Commits on Aug 27, 2021

  1. Configuration menu
    Copy the full SHA
    15313ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c67d0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f59ce83 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98abe99 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    90643a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

  1. major: refactor plugin and addon structure

    plugins can now be created as a type of addon
    adds regexes to convert from a repo or zip to a plugin with a source
    tests nearly all of the added code.
    onerandomusername committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    07976cc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7ab4c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5899a1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3544367 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. Configuration menu
    Copy the full SHA
    3ae5c0e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40c5b25 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0cb103 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    75bae57 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4605b14 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8ede9db View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ca919df View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Configuration menu
    Copy the full SHA
    5be54b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ada61c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8720942 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a69e88 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32aa170 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9a32c0f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f8966cf View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Configuration menu
    Copy the full SHA
    dd787f9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68ed612 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. chore: move plugin_helpers to modmail/plugins

    Moving plugin_helpers to a file within the plugin class means that it can be used with `from modmail.plugins` rather than use the weird plugin_helpers name that it previously had.
    onerandomusername committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    0aa4a9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5052b61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dbb1511 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Configuration menu
    Copy the full SHA
    5adac3a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    462f4ab View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2021

  1. Configuration menu
    Copy the full SHA
    f2ce9f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf09817 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2021

  1. Configuration menu
    Copy the full SHA
    afd4b18 View commit details
    Browse the repository at this point in the history
  2. minor: remove admins from being able to manage plugins

    This permission can be restored once it is able to check permissions on a designated guild
    
    This could be used by people adding the bot if a user makes the bot public by mistake
    onerandomusername committed Sep 5, 2021
    Configuration menu
    Copy the full SHA
    4503797 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8501636 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb73921 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    005fdb5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ebb51f1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fd252c6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    52e2fe0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b032c74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    795a611 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. Configuration menu
    Copy the full SHA
    d8a059c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2053f30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b352071 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    997a20c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb9d20c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ac46ac9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ece505b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a67522e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    781f625 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. plugins: refactor to allow local plugins

    local plugins now act mostly like normal plugins.
    they do not have any special names, and exist as if they were installed normally
    
    to add a local plugin, put the files in the plugins folder,
    in a normal folder, and create a local.toml file in the same format as
    plugins.toml for addon repositories.
    onerandomusername committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    dd463ec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ce64a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9f99dd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    da19a07 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Configuration menu
    Copy the full SHA
    c9fcf01 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. major: plugin loading error handling and proper replies

    plugin management handles more errors and validation
    helper class in modmail.utils.responses to send success or fail messages
    onerandomusername committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    c01185a View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. Configuration menu
    Copy the full SHA
    0b73254 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e98ddae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c874b5a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    68490db View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2021

  1. breaking: restructure how extensions are stored

    major EXT_METADATA improvements
    onerandomusername committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    7f5341c View commit details
    Browse the repository at this point in the history
  2. implement partial plugin restructure

    restructure plugin variables to be a global list of plugins with the extensions as an attribute
    onerandomusername committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    fff1e90 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c163723 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5c9e61e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    49c3d59 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2021

  1. Configuration menu
    Copy the full SHA
    1cf6233 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43eb516 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9a3c9f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a2194d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9ea3be4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    44e2e44 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    063e55a View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Configuration menu
    Copy the full SHA
    abab87c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a6f889 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dafb22c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc5e38d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6bc98dd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    72fd8a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. fix: logging typos

    onerandomusername committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    9784648 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. Configuration menu
    Copy the full SHA
    d70cd3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ece99be View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. Configuration menu
    Copy the full SHA
    141db4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7e5376 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Configuration menu
    Copy the full SHA
    6ff682d View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2021

  1. Configuration menu
    Copy the full SHA
    4401f34 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. Configuration menu
    Copy the full SHA
    d5e18c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f7ffd7d View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Configuration menu
    Copy the full SHA
    fdda962 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    1f49b79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    74c2d78 View commit details
    Browse the repository at this point in the history
  3. fix: patch plugin folder during tests

    fixes issue with testing environment differing if the user has custom plugins
    resolved by monkeypatching the modmail.plugin module to be believed to be in a different location
    this keeps the plugins consistent between environments
    onerandomusername committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    b3e3070 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    34031e4 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Configuration menu
    Copy the full SHA
    1c88421 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8be2332 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6e34994 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8e12bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0b89af0 View commit details
    Browse the repository at this point in the history
  6. fix: mark failing test as xfail

    this is too involved to fix right now
    
    Solution involves returning zip files, but the changes to do that require
    commiting a zipfile, or zipping a zip file before the test.
    But the contents of that zipfile should be the expected format,
    so there needs to be several mock files for that.
    But then they should be in a test resources directory
    But then the test resources directory should have a few helper methods
    But then the test resources will need a large amount of review.
    
    So the short is, there is a fix for these tests, but it adds a subsystem
    and is out of scope of this pr.
    onerandomusername committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    d96d7a7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    550764d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bb9d3f8 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2021

  1. Revert "ci: run tests with verboseness, not quietness"

    This reverts commit 1c88421.
    
    Not part of the scope of this pr. Also should not have been here
    but a rebase would change more history than I want to change.
    onerandomusername committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    20d722f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a773b44 View commit details
    Browse the repository at this point in the history
  3. chore: make requested changes and address review

    - don't require future annotations in modmail/addons/converters.py
    
    - make all `__all__` tuples
    
    - set score cutoff to a constant in modmail/addons/models.py
    
    - compress if statements
    
    - use {} in place of dict()
    
    - fix typos in some docstrings
    
    - use correct typehints where they are incorrect
    
    - decode the stderr stream only once in pip install
    
    - remove unnecessary logging debug statements
    
    - restructure finding plugins to be easy to be easier to read
    
    - use set() where previously it was {}.
    This would cause the variable to be of the wrong type
    onerandomusername committed Nov 21, 2021
    Configuration menu
    Copy the full SHA
    9987b26 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2022

  1. review: address

    onerandomusername committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    1d32910 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2022

  1. Configuration menu
    Copy the full SHA
    bc1a835 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6214cdd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bfba8e2 View commit details
    Browse the repository at this point in the history