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

IBX-3814: Added new endpoint to get field definition by identifier #99

Merged
merged 8 commits into from
Dec 14, 2022

Conversation

mateuszdebinski
Copy link
Contributor

@mateuszdebinski mateuszdebinski commented Dec 1, 2022

Question Answer
JIRA issue IBX-3814
Type bug
Target version V3.3+
BC breaks no
Tests pass yes
Doc needed no

For the purpose of the multi-upload functionality in BO, an endpoint for getting field def has been added by the identifier (in admin-UI we use the identifier of the field to define which field will be used to upload the file).

TODO:

  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

src/lib/Server/Controller/ContentType.php Outdated Show resolved Hide resolved
src/lib/Server/Controller/ContentType.php Outdated Show resolved Hide resolved
src/lib/Server/Controller/ContentType.php Outdated Show resolved Hide resolved
src/lib/Server/Values/RestFieldDefinition.php Outdated Show resolved Hide resolved
@konradoboza konradoboza requested a review from a team December 1, 2022 15:15
@mateuszdebinski mateuszdebinski requested review from konradoboza and a team December 2, 2022 09:53
@ViniTou ViniTou requested a review from a team December 2, 2022 10:08
@konradoboza konradoboza requested a review from a team December 2, 2022 10:46
Copy link
Contributor

@Steveb-p Steveb-p left a comment

Choose a reason for hiding this comment

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

I think that a functional test (integration actually) is missing.

See tests in tests/bundle/Functional. There should be at least one well-known field definition that we can query against an actual instance of Ibexa DXP and check the result.

Copy link
Contributor

@Steveb-p Steveb-p left a comment

Choose a reason for hiding this comment

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

LGTM.

You can take a look at ibexa/rest#40 regarding how I envision we will write tests in the newer packages. I'm talking specifically about REST response snapshots.

@sonarcloud
Copy link

sonarcloud bot commented Dec 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@adamwojs adamwojs left a comment

Choose a reason for hiding this comment

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

+1 but please update REST reference as well

@bogusez
Copy link

bogusez commented Dec 14, 2022

Regression tests passed:
ibexa/experience#118
ibexa/commerce#175
ibexa/content#65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants