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

Csv importer #2814

Merged
merged 5 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions app/Core/Db/DbColumn.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Leantime\Core\Db;

use Attribute;

#[Attribute]
class DbColumn
{
public function __construct(
public string $name,
) {
//
}
}
14 changes: 14 additions & 0 deletions app/Domain/Connector/Models/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,44 @@

namespace Leantime\Domain\Connector\Models {

use Leantime\Core\Db\DbColumn;

class Integration
{
#[DbColumn('id')]
public int $id;

#[DbColumn('providerId')]
public ?string $providerId;

#[DbColumn('method')]
public ?string $method;

#[DbColumn('entity')]
public ?string $entity;

#[DbColumn('fields')]
public ?string $fields;

#[DbColumn('schedule')]
public ?string $schedule;

#[DbColumn('notes')]
public ?string $notes;

#[DbColumn('auth')]
public ?string $auth;

#[DbColumn('meta')]
public ?string $meta;

#[DbColumn('createdOn')]
public ?string $createdOn;

#[DbColumn('createdBy')]
public ?string $createdBy;

#[DbColumn('lastSync')]
public ?string $lastSync;

public function __construct() {}
Expand Down
1 change: 0 additions & 1 deletion app/Domain/CsvImport/Templates/upload.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
$$var = $val; // necessary for blade refactor
}
$maxSize = Fileupload::getMaximumFileUploadSize();
$moduleId = (int) $_GET['id'] ?? '';
?>

<div id="fileManager">
Expand Down
Loading