Skip to content

Comments

feat: corp projects#445

Open
Crypta-Eve wants to merge 3 commits intomasterfrom
corp_projects
Open

feat: corp projects#445
Crypta-Eve wants to merge 3 commits intomasterfrom
corp_projects

Conversation

@Crypta-Eve
Copy link
Member

Corp Projects eveapi pushup.

Work TBD is adding to API

/**
* @var array
*/
protected $roles = ['Project Manager']; // TODO: TBC
Copy link
Contributor

Choose a reason for hiding this comment

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

Has this todo been resolved? If so, we should remove it, else we should resolve it.

/**
* @var string
*/
protected $version = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be dropped, see the recent commits on other jobs

*/
protected $version = '';

private $project_id;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we don't have a type hint?

{
parent::handle();

$this->query_string['limit'] = '100';
Copy link
Contributor

Choose a reason for hiding this comment

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

I haven't really looked into all the ESI changes, but is this for the new cursor pagination thing? I wonder if we don't better push this into the esi request logic instead of having it in the job.

/**
* @var string
*/
protected $version = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above, I don't think this is required anymore

/**
* @var string
*/
private $project_id;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can also add a type hint

// Weird early projects, bad data
$thresholdDate = Carbon::parse('2025-01-01');
if ($lm->isBefore($thresholdDate)){
logger()->warning('early project detected', ['body' => $details]); // TODO investigate
Copy link
Contributor

Choose a reason for hiding this comment

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

another TODO

// Weird early projects
$thresholdDate = Carbon::parse('2025-01-01');
if ($lm->isBefore($thresholdDate)){
logger()->warning('early project detected', ['project' => $project]); // TODO investigate
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO: What is that TODO supposed to do?

$proj = CorporationProject::firstOrNew([
'id' => $project->id,
]);
// dd($project->last_modified, gettype(Carbon($project->last_modified)->format('Y-m-d H:i:s')), Carbon($project->last_modified)->format('Y-m-d H:i:s'));
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be removed

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