-
Notifications
You must be signed in to change notification settings - Fork 1
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
Stage develop merge into main #25
Draft
YaoxuanZhang
wants to merge
85
commits into
main
Choose a base branch
from
develop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…to feature/database
…, awaiting dev merges first
… with dev protocols
…to feature/database
Feature/cap 71 refactor profile
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
…feature/database
…to feature/database
Reviewer's Guide by SourceryThis pull request merges the stage develop branch into the main branch. It includes refactoring of the codebase, moving cogs to a new directory structure, updating database interactions to use a new database class, implementing email verification, and adding chatbot functionality. Sequence diagram for the new email verification processsequenceDiagram
participant U as User
participant B as Bot
participant E as Email Service
participant D as Database
U->>B: Request profile creation
B->>U: Ask for email
U->>B: Provide email
B->>E: Generate and send verification code
E->>U: Send verification email
U->>B: Submit verification code
B->>B: Verify code
alt Valid code
B->>D: Save verified email
B->>U: Confirm verification
else Invalid code
B->>U: Report invalid code
end
Class diagram for the new User and Profile modelsclassDiagram
class User {
+int _id
+List[int] guilds
+List[int] events
+UserProfile profile
+datetime created_at
+datetime updated_at
+save()
}
class UserProfile {
+UserName name
+str school_email
+int student_id
+List[str] major
+int graduation_year
+int phone
}
class UserName {
+str first
+str middle
+str last
}
User *-- UserProfile
UserProfile *-- UserName
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
* Update README.md * Update README.md Test Status * Update README.md * aligning test badge * fixing alignment and added email * fixing alignment again ughh --------- Co-authored-by: Shamik Karkhanis <[email protected]> Co-authored-by: Shamik Karkhanis <[email protected]>
* upd rm * fix venv path * fix venv path for linux * changed CApy to CAPY. added caleb rit email! * forgot one ! --------- Co-authored-by: Shamik Karkhanis <[email protected]>
* Change guild settings error message * Remove extraneous commands from help
…mplate cogs from testing
* working settings prompts * working profile interaction * update profile cog to use interactions * refactor lots, kinda a golden branch but everyone's asleep anyways * not working but added purge * kinda working major refactor, guild is problematic * it's working?? * working guild omg * add guild perms * fix whoopsies in sync, profile working? * trying to fix profile * i think i fixed profile * working on compliance * add pyproject conf to remove pytest.ini * create a bunch of inits bruv * some fixes to type hints with cog, appears to work? * profile borked, needs fixing * profile works!! * fix profile asking for major after modal fail * woah it works * sprinkle some flake8 and write some checks * big refac * not working modal * working developer feedback?! * add colors and reactions to tickets! * update embed statuses and add reset reaction on dev tickets * fix extrenuous title on tickets * remove reaction after added * add sync support for essentials and auto dev bot load * add logging to guild and profile, add hotswapping * add base for robust dropdown handling and test cog and test cog enabler * refac * fix typos in help * fix init typo in interaction bases
* [Update] added unit tests * improved db_test coverage | issue with sync_document_with_template function * updated event_test and guild_test and db.sync_doc_from_temp from curr develop * commented out unused function --------- Co-authored-by: Caleb Alemu <[email protected]> Co-authored-by: Shamik Karkhanis <[email protected]>
* Add logging.basicConfig() details * Change logging statements to fit a basic pattern * Add logger initialization and configuration to log all uncaught errors * Add proper message to console when crashing due to uncaught exception * adhere to flake8 * Update src/capy_app/sys_logger.py Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --------- Co-authored-by: YaoxuanZhang <[email protected]> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* working office hours mvp * working, but need to fix dropdown base to allow pagination and auto split dropdowns with more than one selection, as well as typable dropdowns
- updated config validators
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Do not mark ready. Only used for review
Summary by Sourcery
Refactor the project structure, update dependencies, and improve the help command. Migrate from a simple script-based structure to a more organized, modular structure using cogs. Implement email verification using Mailjet and OAuth, and enhance error handling with detailed logging and invite generation. Introduce an Ollama LLM integration for chatbot functionality.
New Features:
Tests: