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

TE-644: Fix review code to release first version #1

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

Dear @ivy-sgi, we have found the following bug:

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

Dear @ivy-sgi, it would be cool to have the following feature in the market place:

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ on:
jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/ci.yml@v4
secrets:
mvnArgs: -Dazureblob.account=${{ secrets.AZURE_BLOB_ACCOUNT }} -Dazureblob.key=${{ secrets.AZURE_BLOB_ACCOUNT_KEY }}
2 changes: 2 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ on:
jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/dev.yml@v4
secrets:
mvnArgs: -Dazureblob.account=${{ secrets.AZURE_BLOB_ACCOUNT }} -Dazureblob.key=${{ secrets.AZURE_BLOB_ACCOUNT_KEY }}
24 changes: 24 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone.
As part of the Ricoh Group, Axon Ivy is guided by [The spirit of the three loves](https://www.ricoh.com/about/ricoh-way):

- **Love your neighbor** 🤝
We love to get in touch with people and are willing to help others when we are aware of their issues and ideas. Everyone who participates as a user or contributor in this repository is our neighbor.

- **Love your country** 🗺
We love the place we’re located at and enjoy the nature around us. We take care of the environment and are eager to learn from cultures around the globe.

- **Love your work** 👷‍♂️
We are passionate developers, eager to work with new technologies, and are happy to be part of the digital transformation. We love to be creative at work and see our visions accomplished.

## Our Guidelines

This repository is intended to facilitate a friendly and inspiring exchange in which we focus on technical content.

- Be friendly and patient.
- Be welcoming.
- Be considerate.
- Be respectful.
- Be careful in the words that you choose.
- When we disagree, try to understand why.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Blob Connector

[![CI Build](https://github.com/axonivy-professional-services/market-azure-blob-connector/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-professional-services/market-market-azure-blob-connector/actions/workflows/ci.yml)
[![CI Build](https://github.com/axonivy-market/azure-blob-connector/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/azure-blob-connector/actions/workflows/ci.yml)

- Upload file to Azure blob
- Get temporary download link
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.cloud.storage.demo.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.cloud.storage.demo
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=com.axonivy.connector.azure.blob.demo.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=com.axonivy.connector.azure.blob.demo
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=11
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=100000
eclipse.preferences.version=1
11 changes: 11 additions & 0 deletions azure-blob-connector-demo/config/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
# You can define here your project Variables.
#
Variables:
AzureBlob:
# The application ID that's assigned to your app.
ClientId: ''
# The client secret that you generated for your app in the app registration portal.
ClientSecret: ''
# The directory tenant the application plans to operate against, in GUID or domain-name format.
TenantId: ''
# https://<storage-account>.blob.core.windows.net/
EndPoint: ''
# Your container name.
ContainterName: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Data #class
com.axonivy.connector.azure.blob.demo #namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UploadData #class
com.axonivy.connector.azure.blob.demo #namespace
55 changes: 28 additions & 27 deletions azure-blob-connector-demo/pom.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.cloud.storage</groupId>
<artifactId>azure-blob-connector-demo</artifactId>
<version>10.0.21-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<project.build.plugin.version>10.0.16</project.build.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>com.axonivy.cloud.storage</groupId>
<artifactId>azure-blob-connector</artifactId>
<version>${project.version}</version>
<type>iar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>${project.build.plugin.version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.azure.blob</groupId>
<artifactId>azure-blob-connector-demo</artifactId>
<version>10.0.22-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<project.build.plugin.version>10.0.16</project.build.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>com.axonivy.connector.azure.blob</groupId>
<artifactId>azure-blob-connector</artifactId>
<version>${project.version}</version>
<type>iar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>${project.build.plugin.version}</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"format" : "10.0.0",
"id" : "19010D5E49BD2F7F",
"config" : {
"data" : "com.axonivy.cloud.storage.demo.UploadData"
"data" : "com.axonivy.connector.azure.blob.demo.UploadData"
},
"elements" : [ {
"id" : "f0",
Expand All @@ -28,7 +28,7 @@
"type" : "DialogCall",
"name" : "Upload",
"config" : {
"dialogId" : "com.axonivy.cloud.storage.demo.Upload",
"dialogId" : "com.axonivy.connector.azure.blob.demo.Upload",
"startMethod" : "start()"
},
"visual" : {
Expand All @@ -54,7 +54,7 @@
"type" : "DialogCall",
"name" : "Upload",
"config" : {
"dialogId" : "com.axonivy.cloud.storage.demo.UploadByCallSubprocess",
"dialogId" : "com.axonivy.connector.azure.blob.demo.UploadByCallSubprocess",
"startMethod" : "start()"
},
"visual" : {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.axonivy.connector.azure.blob.demo.bean;

import com.azure.storage.blob.models.BlobItem;

public class Blob {
private BlobItem blobItem;
private String linkDownLoad;

public BlobItem getBlobItem() {
return blobItem;
}
public void setBlobItem(BlobItem BlobItem) {
this.blobItem = BlobItem;
}
public String getLinkDownLoad() {
return linkDownLoad;
}
public void setLinkDownLoad(String linkDownLoad) {
this.linkDownLoad = linkDownLoad;
}
}
Loading
Loading