Conversation
8d52554 to
0f943b6
Compare
a7adc9c to
92a0d05
Compare
e70686c to
953c786
Compare
Pass in dependencies to FileManager via constructor
valadas
left a comment
There was a problem hiding this comment.
Left a few comments/questions but the major issue is that casing was changed on some API controllers returns that are causing issues in the frontend, most notably the Site Settings persona bar module is not working.
| public IHttpActionResult Logout() | ||
| { | ||
| return JwtController.Instance.LogoutUser(this.Request) ? (IHttpActionResult)this.Ok(new { success = true }) : this.Unauthorized(); | ||
| return JwtController.Instance.LogoutUser(this.Request) ? (IHttpActionResult)this.Ok(new { Success = true, }) : this.Unauthorized(); |
There was a problem hiding this comment.
This casing change in the dynamic object might be breaking for consumers of this response.
| res = new CachedCountryList(locale); | ||
| DotNetNuke.Common.Utilities.DataCache.SetCache(CacheKey(locale), res); | ||
| res = new CachedCountryList(listController); | ||
| DataCache.SetCache(CacheKey("none"), res); |
There was a problem hiding this comment.
Was the change to "none" here intentional?
| @@ -338,34 +381,34 @@ public HttpResponseMessage GetDefaultPagesSettings(int? portalId, string culture | |||
| { | |||
| Settings = new | |||
| { | |||
| PortalId = portal.PortalID, | |||
| ((IPortalInfo)portal).PortalId, | |||
There was a problem hiding this comment.
This could change the casing of the json right, which may make the frontend choke on that change
| @@ -453,15 +496,15 @@ public HttpResponseMessage GetMessagingSettings(int? portalId) | |||
| { | |||
| Settings = new | |||
| { | |||
| PortalId = portal.PortalID, | |||
| ((IPortalInfo)portal).PortalId, | |||
There was a problem hiding this comment.
Same here on the casing change affecting the response json
| a.PortalAliasId, | ||
| a.HttpAlias, |
There was a problem hiding this comment.
Same here about casing for the json
| @@ -1572,15 +1610,15 @@ public HttpResponseMessage GetPrivacySettings(int? portalId) | |||
| { | |||
| Settings = new | |||
| { | |||
| PortalId = portal.PortalID, | |||
| ((IPortalInfo)portal).PortalId, | |||
| var availablePortals = portals.Select(v => new | ||
| { | ||
| v.PortalID, | ||
| v.PortalId, |
| @@ -2261,7 +2299,7 @@ public HttpResponseMessage GetLanguageSettings(int? portalId) | |||
|
|
|||
| var settings = new | |||
| { | |||
| PortalId = portal.PortalID, | |||
| ((IPortalInfo)portal).PortalId, | |||
Summary
This PR resolves obsolete warnings in DotNetNuke.Library from 1,205 to 1,016.