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

Kohleru #5

Merged
merged 6 commits into from
Aug 21, 2024
Merged

Kohleru #5

merged 6 commits into from
Aug 21, 2024

Conversation

nanunana22
Copy link
Contributor

add ticket for delete

# 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
Copy link

sonarcloud bot commented Aug 21, 2024

Copy link

sonarcloud bot commented Aug 21, 2024

Copy link

@Flooooooooooorian Flooooooooooorian left a 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"?>

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) {

Choose a reason for hiding this comment

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

Suggested change
public void deletebyid(String id) {
public void deleteById(String id) {

Comment on lines +45 to +49





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

Choose a reason for hiding this comment

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

Suggested change
../backend/src/main/resources/dist
../backend/src/main/resources/static

});})

}

Choose a reason for hiding this comment

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

Suggested change
function getAllProducts() {
axios.get(...)
}

Comment on lines +23 to +29
.then(() => {axios.get<Product[]>('api/products')
.then(response => {
setProducts(response.data);
})
.catch(error => {
console.error("Es gab einen Fehler beim Abrufen der Daten!", error);
});})

Choose a reason for hiding this comment

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

Suggested change
.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())

Choose a reason for hiding this comment

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

Delete empty file

@nanunana22 nanunana22 merged commit a42c875 into main Aug 21, 2024
4 checks passed
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