-
Notifications
You must be signed in to change notification settings - Fork 1
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
Kohleru #5
Kohleru #5
Conversation
# Conflicts: # .github/workflows/deploy.yml # Dockerfile # backend/pom.xml # backend/src/main/java/org/example/backend/ProductController.java # backend/src/main/resources/static/index.html # backend/src/test/java/org/example/backend/ProductControllerTest.java # backend/src/test/java/org/example/backend/ProductServiceTest.java # frontend/src/App.tsx # frontend/src/components/ProductList.tsx
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove backend/src/main/resources/static/*
@@ -0,0 +1,124 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add .idea directory to gitignore
@@ -12,6 +12,10 @@ | |||
public class ProductService { | |||
private final ProductRepository productRepository; | |||
|
|||
public void deletebyid(String id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public void deletebyid(String id) { | |
public void deleteById(String id) { |
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leerzeilen?
@@ -8,7 +8,7 @@ pnpm-debug.log* | |||
lerna-debug.log* | |||
|
|||
node_modules | |||
dist | |||
../backend/src/main/resources/dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
../backend/src/main/resources/dist | |
../backend/src/main/resources/static |
});}) | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function getAllProducts() { | |
axios.get(...) | |
} |
.then(() => {axios.get<Product[]>('api/products') | ||
.then(response => { | ||
setProducts(response.data); | ||
}) | ||
.catch(error => { | ||
console.error("Es gab einen Fehler beim Abrufen der Daten!", error); | ||
});}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.then(() => {axios.get<Product[]>('api/products') | |
.then(response => { | |
setProducts(response.data); | |
}) | |
.catch(error => { | |
console.error("Es gab einen Fehler beim Abrufen der Daten!", error); | |
});}) | |
.then(() => getAllProducts()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete empty file
add ticket for delete