Skip to content

Comments

RES-1725 Sentry#548

Merged
edwh merged 11 commits intodevelopfrom
RES-1725_sentry
Sep 13, 2022
Merged

RES-1725 Sentry#548
edwh merged 11 commits intodevelopfrom
RES-1725_sentry

Conversation

@edwh
Copy link
Collaborator

@edwh edwh commented Sep 6, 2022

  • Fixed some untranslated key issues, which are swamping the Sentry logs so much it’s hard to see anything else.
  • Removed some dead code.
  • Added a bit of testing.

@edwh edwh requested a review from restart-neil September 6, 2022 15:21
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 16 Code Smells

No Coverage information No Coverage information
11.8% 11.8% Duplication

Copy link
Contributor

@ngm ngm left a comment

Choose a reason for hiding this comment

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

Left a few comments just to double check on a few things that seem fairly recently added but now removed. (scopes and attributes - as the search term for their usage doesn't necessarily correspond to the actual method name..)

@edwh edwh merged commit 1296884 into develop Sep 13, 2022
$website = $fields[5];
$phone = $fields[6];
$networks = $fields[7];
$description = $fields[8];
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the DB, I think we're missing:

  • area
  • postcode if present

Copy link
Contributor

@ngm ngm Sep 19, 2022

Choose a reason for hiding this comment

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

Plus a new 'telephone' field that we said we would create I believe.

EDIT: sorry, I can see that phone is there. But I don't think we actually set it on the group later.

Copy link
Collaborator Author

@edwh edwh Sep 19, 2022

Choose a reason for hiding this comment

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

Postcode we didn't discuss in the doc. That is their CP field - will set.

I'm adding phone at the moment, but it's in a new branch for RES-1756 as this one has been released. That will be ready for review soon.

$group->longitude = $lng;
$group->country = $country;
$group->website = $website;
$group->free_text = $description;
Copy link
Contributor

Choose a reason for hiding this comment

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

In the DB there's a 'shareable_code' field. Does this get set automatically? Or do we need to set it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think you're right that we need to set it. Added (in 1756).

{
$input = $this->argument('input');
$output = $this->argument('output');
$networks = $this->option('networks');
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the format of this - comma separated list of networks ids?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes.


if ($organisateur) {
$description .= "<p>Organisateur: " . htmlspecialchars($organisateur) . "</p>";
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We also said we would add the Inscription field to the Description.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will add.

$website,
$phone,
$networks,
$description,
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also be passing 'Ville' as the 'Area' field, somewhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes - will add.

Copy link
Contributor

@ngm ngm left a comment

Choose a reason for hiding this comment

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

Some changes needed for RES-1756.

@ngm ngm deleted the RES-1725_sentry branch June 19, 2024 16:18
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