Skip to content

Feature/multiple variables#16

Open
Sunnyka98 wants to merge 13 commits intomasterfrom
feature/multiple-variables
Open

Feature/multiple variables#16
Sunnyka98 wants to merge 13 commits intomasterfrom
feature/multiple-variables

Conversation

@Sunnyka98
Copy link
Contributor

@Sunnyka98 Sunnyka98 commented Nov 28, 2024

  • da fehlt noch: Translation, Verbindung zu FTP,FTPS,SFTP testen,

close https://github.com/symcon/modules/issues/281

@Sunnyka98 Sunnyka98 requested a review from paresy November 28, 2024 16:08
@Sunnyka98 Sunnyka98 marked this pull request as ready for review November 29, 2024 15:48
Copy link
Contributor

@TillBrede TillBrede left a comment

Choose a reason for hiding this comment

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

Habe das Modul auf der 2 getestet. Das Zippen und Aufteilen auf mehrere Dateien scheint zu laufe. Bei mir lokal konnte ich den Branch nicht auschecken (Problem mit composer?). Das hochladen über FTP/SFTP/FTPS konnte ich nicht komplett testen (SB_UIGoDeeper, TargetDir). Der Login und das auslesen der Verzeichnisse läuft aber.

"confirm": "Go into this Directory?"
},
{
"onClick": "SB_UIGoDeeper($id,$CurrentDir.'/'.$SelectTargetDirectory['SelectedDirectory'],$Host, $Port, $Username, $Password, $ConnectionType);",
Copy link
Contributor

Choose a reason for hiding this comment

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

Falsches Prefix

},
{
"type": "Label",
"caption": "Single File per Variable will zip in a archive",
Copy link
Contributor

Choose a reason for hiding this comment

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

an archive

if (!$showError) {
$this->SetStatus(201);
} else {
echo $this->Translate('Username/Password is invalid');
Copy link
Contributor

Choose a reason for hiding this comment

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

Dieser Fehler scheint nur bei SFTP korrekt angezeigt werden. Bei den anderen gibt es nur unschöne Fehlermeldungen.
image
Der Status 201 "A Variable is not selected" kann da irreführend sein

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was meinst du mit unschönen Fehlermeldungen?

Copy link
Contributor

Choose a reason for hiding this comment

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

Die Fehlermeldung im Bild. Bei SFTP wird einfach 'Username/Password is invalid' angezeigt. Bei dem Rest wird nichts abgefangen.

//*---------------*//

/** Handle the export via Button */
public function UserExport(int $ArchiveVariable, int $AggregationStage, string $AggregationStart, string $AggregationEnd)
Copy link
Contributor

Choose a reason for hiding this comment

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

ArchiveVariable wird wohl nur für die Fehlermeldung genutzt

*/
private function fetchAllValues(string $filePath, int $variable, int $level, int $start, int $end, int $limit)
{
$separator = $this->ReadPropertyString('DecimalSeparator');
Copy link
Contributor

Choose a reason for hiding this comment

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

Es wird nicht geprüft ob die Variablen existieren. Nicht existierende Variablen führen zu unschönen Fehlermeldungen

Comment on lines -49 to +69
$this->UpdateMailInterval();
$this->UpdateCyclicInterval();
Copy link
Contributor

Choose a reason for hiding this comment

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

Der Status der Instanz scheint nicht richtig zurückgesetzt werden. Hier wäre ein guter Ort dafür.

$this->UpdateFormField('ZipFile', 'enabled', $exportOption == 'multi');
$this->UpdateFormField('MultiInfo', 'visible', $exportOption == 'multi');
}
/*UI Funktion to change the Port base on the connection type */
Copy link
Contributor

Choose a reason for hiding this comment

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

denglisch

@Sunnyka98 Sunnyka98 requested a review from TillBrede March 10, 2025 12:49
Copy link
Contributor

@TillBrede TillBrede left a comment

Choose a reason for hiding this comment

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

Der Login Fehler wird noch nicht schön abgefangen.
Funktional konnte ich nicht testen, da das Submodul fehlt / nicht richtig geladen wird

if (!$showError) {
$this->SetStatus(201);
} else {
echo $this->Translate('Username/Password is invalid');
Copy link
Contributor

Choose a reason for hiding this comment

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

Die Fehlermeldung im Bild. Bei SFTP wird einfach 'Username/Password is invalid' angezeigt. Bei dem Rest wird nichts abgefangen.

Comment on lines +212 to +213
$this->UpdateFormField('InformationLabel', 'caption', $this->Translate('Connection is valid'));
$this->UpdateFormField('Progress', 'visible', false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Die Elemente InformationLabel sowie Progress existieren nicht

@Sunnyka98 Sunnyka98 requested a review from TillBrede July 1, 2025 10:08
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