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

SHARE-471 Improved all-time ranking of projects #4448

Merged
merged 9 commits into from
Nov 3, 2023

Conversation

makne17
Copy link
Contributor

@makne17 makne17 commented Oct 30, 2023


Your checklist for this pull request

Please review the contributing guidelines and wiki pages of this repository.

  • Include the name and id of the Jira ticket in the PR’s title eg.: SHARE-666 The devils ticket
  • Choose the proper base branch (develop)
  • Confirm that the changes follow the project’s coding guidelines
  • Verify that the changes generate no warnings and errors
  • Verify to commit no other files than the intentionally changed ones
  • Include reasonable and readable tests verifying the added or changed behavior
  • Verify that all tests are passing (CI), if not please state the test cases in the section below
  • Perform a self-review of the changes
  • Stick to the project’s git workflow (rebase and squash your commits)
  • Verify that your changes do not have any conflicts with the base branch
  • Put your ticket into the Code Review section in Jira
  • Post a message in the #catroweb Slack channel and ask for a code reviewer
  • Check that your pull request has been successfully deployed to https://web-test-1.catrob.at/

Additional Description

TODO: Add additional information that is not in your commit-message here

Tests - additional information

TODO: add additional information about testruns here

added symfony command for popularity calculation
added Most popular category to landing page
added behat testcases
reverted failing changes that npm run fix caused
@makne17 makne17 changed the title Share 471 Share 471 - Improved all-time ranking of projects Oct 30, 2023
@makne17 makne17 requested a review from dmetzner October 30, 2023 15:50
@makne17 makne17 self-assigned this Oct 30, 2023
@schaubes schaubes changed the title Share 471 - Improved all-time ranking of projects SHARE-471 Improved all-time ranking of projects Oct 30, 2023
Comment on lines 24 to 27
$this->addSql('ALTER TABLE studio_activity CHANGE type type ENUM(\'comment\', \'project\', \'user\')');
$this->addSql('ALTER TABLE studio_user CHANGE role role ENUM(\'admin\', \'member\'), CHANGE status status ENUM(\'active\', \'banned\', \'pending_request\')');
$this->addSql('ALTER TABLE user_like_similarity_relation CHANGE similarity similarity NUMERIC(4, 3) DEFAULT \'0\' NOT NULL');
$this->addSql('ALTER TABLE user_remix_similarity_relation CHANGE similarity similarity NUMERIC(4, 3) DEFAULT \'0\' NOT NULL');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Those 4 lines can be removed, they have no effect, and will be in every migration. There must be a misconfiguration in our settings. You can remove them

$this->entity_manager->flush();
$output->writeln('Popularity scores have been updated');

return Command::SUCCESS;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this command will run in a timeout, but we can test it out with the next deployment.

@dmetzner
Copy link
Collaborator

LGTM - please resolve the conflict :)

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #4448 (9fdfbdb) into develop (226017d) will decrease coverage by 0.48%.
Report is 23 commits behind head on develop.
The diff coverage is 13.26%.

@@              Coverage Diff              @@
##             develop    #4448      +/-   ##
=============================================
- Coverage      49.66%   49.19%   -0.48%     
- Complexity      5690     5707      +17     
=============================================
  Files            662      663       +1     
  Lines          20499    20597      +98     
=============================================
- Hits           10181    10132      -49     
- Misses         10318    10465     +147     
Flag Coverage Δ
behat 47.01% <13.26%> (-0.47%) ⬇️
phpunit 8.50% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/Project/ProgramManager.php 73.78% <100.00%> (+0.22%) ⬆️
...ystem/Testing/DataFixtures/ProjectDataFixtures.php 90.56% <100.00%> (+0.08%) ⬆️
src/DB/Entity/Project/Program.php 80.46% <60.00%> (-0.41%) ⬇️
...mands/DBUpdater/UpdateProjectPopularityCommand.php 6.74% <6.74%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dmetzner dmetzner merged commit f23ad6d into Catrobat:develop Nov 3, 2023
45 of 48 checks passed
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.

2 participants