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 Update: Unit Tests, Ticket Sorting, View Template Addons, Fault Tolerant Commands #54

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

Auwate
Copy link

@Auwate Auwate commented Apr 9, 2024

For a full description, please check the README.md file under recent changes.

Added UTC-5 | North America/New York to template
COMMENTED OUT LOGGING DRIVER
Dockerfile clone location changed to development.
Testing new ordering based on when the Ticket began, rather than when it ended.
Working on ordering.
- UTC & Ordering
1: Edited template HTML to include UTC-05:00

2: Editing admin.py to order Tickets by recency, rather than when it ended.

3: Added labels to forms.py
Edit: models.py, views.py

Added a description function to TicketLog. This function simply checks if action_notes exists, and if it does it formats it from HTML.
- Edit: Changed TicketLog.description() to last_log.description()
Edit: added description.allow_tags = True.
Latest Update now has a time associated with it.
Changed footer CSS from relative to fixed.
ADDED CLASS TO DIV ON LINE 209.

ADDED CSS PROPERTIES TO .row
Auwate and others added 22 commits April 1, 2024 16:29
Unit Tests and a new file: settings-test.py
Includes:
- settings-dev.py
- Delete migrations
- Changing templates and forms to only say UTC
- test-models.py
…ur when latest_action_notes is checked.

This could cause an error because not all Tickets have logs, and if a Ticket without a log is called, it could raise an error.
Part 1: Reducing fluff

Part 2: Added unit test to check whether the main view (where Tickets are shown), returns a 200 code AND has ticket objects where "latest_action_note" and "latest_action_date" exist.
Align with master repo.
Align with master repo
Align with master repo
Align with master repo
Align with master repo
Align with master repo
Align with master repo
Fixing unit test
Copy link
Member

@italovalcy italovalcy left a comment

Choose a reason for hiding this comment

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

Austin, excellent pull request and all changes make sense for me. I just left one comment regarding the GitHub repo used for Dockerfile. Please let me know if you have more information on that.

RUN git clone https://github.com/amlight/Services-Status.git
RUN git clone https://github.com/Auwate/Services-Status.git
Copy link
Member

Choose a reason for hiding this comment

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

Hi Austin, this particular change here does not seems necessary. Can you please clarify why we need this?

Copy link
Author

Choose a reason for hiding this comment

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

Ah I was testing using my forked repo, I'll fix that right now!

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.

None yet

2 participants