mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-03 12:18:08 +00:00
removed caching
This commit is contained in:
@@ -37,36 +37,43 @@ const AddProfile = () => {
|
|||||||
const { customerId } = useContext(UserContext);
|
const { customerId } = useContext(UserContext);
|
||||||
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
|
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'ssid' },
|
variables: { customerId, type: 'ssid' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery(
|
const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'radius' },
|
variables: { customerId, type: 'radius' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const { data: captiveProfiles, fetchMore: fetchMoreCaptiveProfiles } = useQuery(
|
const { data: captiveProfiles, fetchMore: fetchMoreCaptiveProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'captive_portal' },
|
variables: { customerId, type: 'captive_portal' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), {
|
const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'passpoint_venue' },
|
variables: { customerId, type: 'passpoint_venue' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery(
|
const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'passpoint_operator' },
|
variables: { customerId, type: 'passpoint_operator' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const { data: idProviderProfiles, fetchMore: fetchMoreIdProviderProfiles } = useQuery(
|
const { data: idProviderProfiles, fetchMore: fetchMoreIdProviderProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'passpoint_osu_id_provider' },
|
variables: { customerId, type: 'passpoint_osu_id_provider' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), {
|
const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'rf' },
|
variables: { customerId, type: 'rf' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
const [createProfile] = useMutation(CREATE_PROFILE);
|
const [createProfile] = useMutation(CREATE_PROFILE);
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|||||||
@@ -82,12 +82,14 @@ const ProfileDetails = () => {
|
|||||||
|
|
||||||
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
|
const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'ssid' },
|
variables: { customerId, type: 'ssid' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery(
|
const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'radius' },
|
variables: { customerId, type: 'radius' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -95,17 +97,20 @@ const ProfileDetails = () => {
|
|||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'captive_portal' },
|
variables: { customerId, type: 'captive_portal' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), {
|
const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'passpoint_venue' },
|
variables: { customerId, type: 'passpoint_venue' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
|
|
||||||
const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery(
|
const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery(
|
||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'passpoint_operator' },
|
variables: { customerId, type: 'passpoint_operator' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -113,11 +118,13 @@ const ProfileDetails = () => {
|
|||||||
GET_ALL_PROFILES(),
|
GET_ALL_PROFILES(),
|
||||||
{
|
{
|
||||||
variables: { customerId, type: 'passpoint_osu_id_provider' },
|
variables: { customerId, type: 'passpoint_osu_id_provider' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), {
|
const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), {
|
||||||
variables: { customerId, type: 'rf' },
|
variables: { customerId, type: 'rf' },
|
||||||
|
fetchPolicy: 'network-only',
|
||||||
});
|
});
|
||||||
|
|
||||||
const [updateProfile] = useMutation(UPDATE_PROFILE);
|
const [updateProfile] = useMutation(UPDATE_PROFILE);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest --passWithNoTests --coverage",
|
"test": "jest --passWithNoTests --coverage",
|
||||||
"start": "cross-env NODE_ENV=development webpack-dev-server",
|
"start": "cross-env NODE_ENV=development webpack-dev-server",
|
||||||
"start:bare": "cross-env API=https://wlan-graphql.qa.lab.wlan.tip.build NODE_ENV=bare webpack-dev-server",
|
"start:bare": "cross-env API=ttps://portal.rtl.lab.netexperience.com NODE_ENV=bare webpack-dev-server",
|
||||||
"start:dev": "cross-env API=https://portal.rtl.lab.netexperience.com NODE_ENV=development webpack-dev-server",
|
"start:dev": "cross-env API=https://portal.rtl.lab.netexperience.com NODE_ENV=development webpack-dev-server",
|
||||||
"build": "webpack --mode=production",
|
"build": "webpack --mode=production",
|
||||||
"format": "prettier --write 'app/**/*{.js,.scss}'",
|
"format": "prettier --write 'app/**/*{.js,.scss}'",
|
||||||
|
|||||||
Reference in New Issue
Block a user