-
Notifications
You must be signed in to change notification settings - Fork 46
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
feat/profile #114
Merged
Merged
feat/profile #114
Changes from 12 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7a9be0e
feat: add profile api schema
Alonza0314 fb313a9
feat: add profile model
Alonza0314 173a2ce
fix: rewrite the fileter example in flowrules
Alonza0314 8685fcb
feat: add openapi generator docker script
Alonza0314 f4932d5
feat: add backend profile api handler function and its corresponds ro…
Alonza0314 13431ff
feat: add a script for quickly compile frontend and run backend
Alonza0314 c35d1d2
feat: add search box and pager in profile mlist page
Alonza0314 fa34f51
feat: add a selection box in subscriberCreate form
Alonza0314 ec5da90
test: add a test file on profile DTO, and fix a small missing bugs on…
Alonza0314 ef65d6e
fix: solve the wrong profileName use in edit page(typo as name, shoul…
Alonza0314 6677c96
fix: solve golangci-lint problem
Alonza0314 c6fedfe
fix: resolve govet shadowing issue by avoiding variable(err) re-decla…
Alonza0314 fffae3a
feat: add tenantId into profileData, and set it as admin in default
Alonza0314 256568b
refactor: add a blank line between import and function declaration
Alonza0314 242306a
refactor: remove console.log and replace some error message from cons…
Alonza0314 fc72c1f
refactor: apply early return on flowRule and upSecurity function
Alonza0314 458309a
refactor: extract flowRule/upSecurity/chargingConfig as additional co…
Alonza0314 bff83f8
refactor: add a blank line between import and function declaration
yccodr e2a693f
chore: format
yccodr 6d6a95b
chore: format
yccodr e1150e0
feat: show more friendly ui when error occurs
yccodr ba474d6
chore: early return on no profile found
yccodr d66ffb5
feat: make return message more clear on porfile part
Alonza0314 e503852
feat: improve profile confict and not found return message's behavior
Alonza0314 2249b7a
feat: improve profile db operation error message behavior
Alonza0314 91d6661
refactor: remove gpsi in profile
Alonza0314 8423dd7
fix: solve 404 error when refresh profile page
Alonza0314 cbc47fc
fix: remove gpsi in profile dto
Alonza0314 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package WebUI | ||
|
||
import "github.com/free5gc/openapi/models" | ||
|
||
type Profile struct { | ||
ProfileName string `json:"profileName"` | ||
AccessAndMobilitySubscriptionData models.AccessAndMobilitySubscriptionData `json:"AccessAndMobilitySubscriptionData"` | ||
SessionManagementSubscriptionData []models.SessionManagementSubscriptionData `json:"SessionManagementSubscriptionData"` | ||
SmfSelectionSubscriptionData models.SmfSelectionSubscriptionData `json:"SmfSelectionSubscriptionData"` | ||
AmPolicyData models.AmPolicyData `json:"AmPolicyData"` | ||
SmPolicyData models.SmPolicyData `json:"SmPolicyData"` | ||
FlowRules []FlowRule `json:"FlowRules"` | ||
QosFlows []QosFlow `json:"QosFlows"` | ||
ChargingDatas []ChargingData | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package WebUI | ||
|
||
type ProfileListIE struct { | ||
ProfileName string `json:"profileName"` | ||
Gpsi string `json:"gpsi"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/bash | ||
|
||
# prerequisites | ||
# - docker | ||
|
||
# use Docker to run OpenAPI Generator | ||
docker run --rm -v $PWD:/local openapitools/openapi-generator-cli generate -i /local/webconsole.yaml -g typescript-axios -o /local/src/api | ||
|
||
# replace Time with Date in the file | ||
sed 's/: Time/: Date/g' /local/src/api/api.ts > /local/src/api/api.ts.mod | ||
mv /local/src/api/api.ts.mod /local/src/api/api.ts # rename the replaced file to the original file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Use models.problemDetails (from openapi pkg) to instead.