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

Allow to load configuration from globals #1

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

nj0yeh
Copy link
Contributor

@nj0yeh nj0yeh commented Nov 13, 2024

Allow to load configuration from globals.
Remove customer-specific handling of message fields.

process-engine-ci and others added 4 commits September 19, 2024 16:25
[skip ci]
# Changelog v0.2.0 (12.11.2024)

Dieser Changelog deckt die Änderungen zwischen folgenden Versionen ab: [v0.1.0 und v0.2.0](v0.1.0...v0.2.0).

Weitere Hinweise befinden sich im Changelog der vorherigen Version: [v0.1.0](https://github.com/5minds/node-red-contrib-processcube-elasticsearch/releases/tag/v0.1.0).

## Merged Pull Requests

- none

[skip ci]
@nj0yeh nj0yeh requested a review from roblen45 November 13, 2024 08:25
Comment on lines 13 to 17
let url = "";
if(config.urlType == "global"){
url = this.context().global.get(config.url);
} else {
url = config.url;
Copy link
Contributor

Choose a reason for hiding this comment

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

Es gibt von Node-RED eine eigene Funktion um TypedInputs auszuwerten:

Suggested change
let url = "";
if(config.urlType == "global"){
url = this.context().global.get(config.url);
} else {
url = config.url;
let url = RED.util.evaluateNodeProperty(n.url, n.urlType, node);

Copy link
Contributor

@luisthieme luisthieme left a comment

Choose a reason for hiding this comment

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

Eventuell könnte man neben den Typen "str" und "global" node env und flow hinzufügen.

@luisthieme
Copy link
Contributor

Ah und bitte nach develop mergen und nicht main.

@nj0yeh nj0yeh changed the base branch from main to develop November 14, 2024 09:29
@nj0yeh
Copy link
Contributor Author

nj0yeh commented Nov 14, 2024

Ist umgestellt auf develop. env und flow würde ich dich oder jemand anderen bitten, hinzuzufügen. Bei TP brauchen wir es nicht. Wahrscheinlich gibt es noch mehr Verbesserungspotential in dem Paket (z. B. das schon angesprochene Handling von Timing-Problemen, wenn z. B. das Global-Environment noch nicht die richtigen Werte zum Zeitpunkt des Konstruktordurchlaufs enthält).

@nj0yeh nj0yeh merged commit 3ee1905 into develop Nov 14, 2024
2 checks passed
process-engine-ci added a commit that referenced this pull request Nov 15, 2024
# Changelog v0.3.0 (15.11.2024)

Dieser Changelog deckt die Änderungen zwischen folgenden Versionen ab: [v0.2.0 und v0.3.0](v0.2.0...v0.3.0).

Weitere Hinweise befinden sich im Changelog der vorherigen Version: [v0.2.0](https://github.com/5minds/node-red-contrib-processcube-elasticsearch/releases/tag/v0.2.0).

## Merged Pull Requests

- #1 Allow to load configuration from globals  (merged 14.11.2024)

[skip ci]
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.

4 participants