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

BITMAKER-3543 Stats module merging #210

Merged
merged 8 commits into from Jul 19, 2023
Merged

BITMAKER-3543 Stats module merging #210

merged 8 commits into from Jul 19, 2023

Conversation

webtaken
Copy link
Contributor

Description

Review meetings and changing code for corrections if needed for the stats module branch since this is a big change.

Completion Criteria:

Stats module is merged.

Issue

Checklist before requesting a review

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have made corresponding changes to the documentation.
  • New and existing tests pass locally with my changes.
  • If this change is a core feature, I have added thorough tests.
  • If this change affects or depends on the behavior of other estela repositories, I have created pull requests with the relevant changes in the affected repositories. Please, refer to our official documentation.
  • I understand that my pull request may be closed if it becomes obvious or I did not perform all of the steps above.

@webtaken webtaken added the enhancement New feature or request label Jul 17, 2023
@webtaken webtaken self-assigned this Jul 17, 2023
webtaken and others added 5 commits July 17, 2023 15:46
#204)

* Added spiders endpoint to global stats and modified the stats serializers schema

* Fixed issues with api generation, changed some schema responses and updated viewsets names

* Added jobs action method to spiders viewset

* Added the integration in frontend with the backend, disabled the expandable feature on the stats table

* Disabling expandable row on stats table section

* Fix issues mentioned on my reviewer's comments
* Rebase done & generating new API

* Finished modals chart appendix content and added pagination for spiders

* Changed the position of the expand icon to see the details modal

* Changed spiders Ids for names to enhance UX, fixing issues with overview tab state variables on reloading

* Fixing issue with default page in jobs and spiders endpoints

* Generated new docs and fixing issue with notifications endpoint

* Changing spider title tag
…enu (#160)

* Call save_action method in views and serializers
* Refactor Activity and Notification code
* Changed Project ordering to use the name field
* Fixed serializers and migrations.
* Update serializers and views to correctly use activity and notification
* Fix cronjob "run once" method

---------

Co-authored-by: Raymond Negron <raymond1242@Raymonds-MacBook-Air.local>
Co-authored-by: mgonnav <mateo@emegona.com>
* BITMAKER-1980: Save real-time stats in Redis (#144)

* Retrieve job stats from Redis if the job is running
* Catch Exception rather than PyMongo exceptions
* Add unless-stopped restart policy to docker services
* Save stats from Redis when job is manually stopped
Copy link
Contributor

@raymond1242 raymond1242 left a comment

Choose a reason for hiding this comment

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

Check and fix comments pls

Comment on lines +126 to +131
**self.numerical_stats,
"jobs": {**self.jobs_stats},
"pages": {**self.pages_stats},
"status_codes": {**self.status_codes_stats},
"logs": {**self.logs_stats},
"coverage": {**self.coverage_stats},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now the initialization is shorter

Comment on lines +21 to +23
return Notification.objects.filter(user=self.request.user).order_by(
"-activity__created"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes belong your PR?

Copy link
Contributor

@raymond1242 raymond1242 left a comment

Choose a reason for hiding this comment

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

There are changes I think not from you PR

@raymond1242 raymond1242 self-requested a review July 19, 2023 17:50
Copy link
Contributor

@raymond1242 raymond1242 left a comment

Choose a reason for hiding this comment

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

Good Job!

@webtaken webtaken merged commit 536eaca into main Jul 19, 2023
1 check passed
@webtaken webtaken deleted the BITMAKER-3543 branch July 19, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants