9 Commits

Author SHA1 Message Date
Sean Macfarlane
0c5d35f7b8 updated library 2021-08-23 22:41:37 -04:00
Sean Macfarlane
d21304e8fb Merge pull request #110 from Telecominfraproject/hotfix/PasspointProfileFixes
hotfix/PasspointProfileFixes: Added Passpoint profile to Add/Update profile
2021-08-23 22:36:27 -04:00
irtiza-h30
3f7c3a8478 updated gql errorPolicy 2021-08-20 17:23:05 -04:00
irtiza-h30
0de1e380b5 undo commit 2021-08-20 17:22:26 -04:00
irtiza-h30
30bf5adfc1 updated gql errorPolicy 2021-08-20 17:12:41 -04:00
irtiza-h30
1f9983ba65 Fixed profile type 2021-08-18 14:10:15 -04:00
irtiza-h30
bc4a9c6152 Added Passpoint profile to Add/Update profile 2021-08-18 13:54:38 -04:00
Sean Macfarlane
eeb1f8a886 Merge pull request #109 from Telecominfraproject/NETEXP-3471
WIFI-3471 Change image tag to 1.3.0-SNAPSHOT
2021-08-17 14:55:09 -04:00
AkshayJagadish-ne
7588eae33d Update dockerpublish.yml 2021-08-13 14:17:42 -04:00
5 changed files with 35 additions and 14 deletions

View File

@@ -61,7 +61,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
TIMESTAMP=$(date +'%Y-%m-%d')
@@ -96,7 +96,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/heads/release/"* ]] && VERSION=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\/release\/[v]//' | awk '{print $1"-SNAPSHOT"}')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=1.2.0-SNAPSHOT
[ "$VERSION" == "master" ] && VERSION=1.3.0-SNAPSHOT
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION

View File

@@ -79,6 +79,15 @@ const AddProfile = () => {
variables: { customerId, type: 'rf' },
fetchPolicy: 'network-only',
});
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
GET_ALL_PROFILES(),
{
variables: { customerId, type: 'passpoint' },
fetchPolicy: 'network-only',
}
);
const [createProfile] = useMutation(CREATE_PROFILE);
const history = useHistory();
@@ -117,6 +126,8 @@ const AddProfile = () => {
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
else if (key === 'passpoint_osu_id_provider')
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
else if (key === 'passpoint')
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
};
@@ -170,6 +181,7 @@ const AddProfile = () => {
operatorProfiles={operatorProfiles?.getAllProfiles?.items}
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
rfProfiles={rfProfiles?.getAllProfiles?.items}
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
onFetchMoreProfiles={handleFetchMoreProfiles}
fileUpload={handleFileUpload}
/>

View File

@@ -1,7 +1,7 @@
import React, { useState, useContext } from 'react';
import { useParams, Redirect } from 'react-router-dom';
import { useQuery, useMutation, gql } from '@apollo/client';
import { Alert, notification } from 'antd';
import { notification } from 'antd';
import { ProfileDetails as ProfileDetailsPage, Loading } from '@tip-wlan/wlan-cloud-ui-library';
import { ROUTES, AUTH_TOKEN } from 'constants/index';
@@ -32,6 +32,8 @@ const GET_PROFILE = gql`
osuSsidProfile {
id
name
profileType
details
}
childProfileIds
createdTimestamp
@@ -87,9 +89,10 @@ const ProfileDetails = () => {
const { data: apiUrl } = useQuery(GET_API_URL);
const { loading, error, data } = useQuery(GET_PROFILE, {
const { loading, data } = useQuery(GET_PROFILE, {
variables: { id },
fetchPolicy: 'network-only',
errorPolicy: 'all',
});
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
@@ -139,6 +142,14 @@ const ProfileDetails = () => {
fetchPolicy: 'network-only',
});
const { data: passpointProfiles, fetchMore: fetchMorePasspointProfiles } = useQuery(
GET_ALL_PROFILES(),
{
variables: { customerId, type: 'passpoint' },
fetchPolicy: 'network-only',
}
);
const [updateProfile] = useMutation(UPDATE_PROFILE);
const [deleteProfile] = useMutation(DELETE_PROFILE);
@@ -269,6 +280,8 @@ const ProfileDetails = () => {
fetchMoreProfiles(e, operatorProfiles, fetchMoreOperatorProfiles);
else if (key === 'passpoint_osu_id_provider')
fetchMoreProfiles(e, idProviderProfiles, fetchMoreIdProviderProfiles);
else if (key === 'passpoint')
fetchMoreProfiles(e, passpointProfiles, fetchMorePasspointProfiles);
else fetchMoreProfiles(e, ssidProfiles, fetchMore);
};
@@ -276,12 +289,6 @@ const ProfileDetails = () => {
return <Loading />;
}
if (error) {
return (
<Alert message="Error" description="Failed to load profile data." type="error" showIcon />
);
}
if (redirect) {
return <Redirect to={ROUTES.profiles} />;
}
@@ -289,6 +296,7 @@ const ProfileDetails = () => {
return (
<ProfileDetailsPage
name={data.getProfile.name}
profileId={data?.getProfile?.id}
profileType={data.getProfile.profileType}
details={data.getProfile.details}
childProfiles={data.getProfile.childProfiles}
@@ -304,6 +312,7 @@ const ProfileDetails = () => {
idProviderProfiles={idProviderProfiles?.getAllProfiles?.items}
associatedSsidProfiles={data.getProfile?.associatedSsidProfiles}
osuSsidProfile={data.getProfile?.osuSsidProfile}
passpointProfiles={passpointProfiles?.getAllProfiles?.items}
fileUpload={handleFileUpload}
onFetchMoreProfiles={handleFetchMoreProfiles}
onDownloadFile={handleDownloadFile}

6
package-lock.json generated
View File

@@ -2223,9 +2223,9 @@
}
},
"@tip-wlan/wlan-cloud-ui-library": {
"version": "1.2.2",
"resolved": "https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/@tip-wlan/wlan-cloud-ui-library/-/@tip-wlan/wlan-cloud-ui-library-1.2.2.tgz",
"integrity": "sha1-mlLeN9yAg9KcSWEwc/s2sRxem7E="
"version": "1.2.6",
"resolved": "https://tip.jfrog.io/artifactory/api/npm/tip-wlan-cloud-npm-repo/@tip-wlan/wlan-cloud-ui-library/-/@tip-wlan/wlan-cloud-ui-library-1.2.6.tgz",
"integrity": "sha1-BZoknNYpmGz7TCJmRVDSOtrA4B4="
},
"@types/anymatch": {
"version": "1.3.1",

View File

@@ -21,7 +21,7 @@
"dependencies": {
"@ant-design/icons": "^4.2.1",
"@apollo/client": "^3.1.3",
"@tip-wlan/wlan-cloud-ui-library": "^1.2.2",
"@tip-wlan/wlan-cloud-ui-library": "^1.2.6",
"antd": "^4.5.2",
"apollo-upload-client": "^13.0.0",
"graphql": "^15.5.0",