@studyportals/fawkes 8.0.2-1 → 8.0.2-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,6 @@ export class ProgrammesBaseIndexabilityPolicy extends BaseSeoIndexabilityPolicy
28
28
  else {
29
29
  result = await rule.forSitemapGenerator(filterKeyValues);
30
30
  }
31
- // console.log("RuleName: " + rule.getName() + " Rule result: " + result); // eslint-disable-line
32
31
  if (!result) {
33
32
  return false;
34
33
  }
@@ -1,4 +1,5 @@
1
1
  import { DependencyMissingError } from '../../errors/DependencyMissingError';
2
+ import { FilterKey } from '@studyportals/search-filters/server-side';
2
3
  export class MinimumAmountOfResultsRule {
3
4
  minimumResultsCount = 7;
4
5
  maximumPageSize = 20;
@@ -16,6 +17,11 @@ export class MinimumAmountOfResultsRule {
16
17
  throw new DependencyMissingError('SearchApiClient');
17
18
  }
18
19
  const count = await this.searchApiClient.getCount(filterKeyValues);
20
+ if (Object.keys(filterKeyValues).includes(FilterKey.DURATION)) {
21
+ const filterKey = FilterKey.DURATION;
22
+ const filterValue = filterKeyValues.get(filterKey);
23
+ console.log(`DEBUG: Duration filter applied alone, filter key: ${filterKey}, filter value: ${filterValue} found results: ${count}`); // eslint-disable-line no-console
24
+ }
19
25
  return count >= (pageNumber - 1) * this.maximumPageSize + this.minimumResultsCount;
20
26
  }
21
27
  forSitemapGenerator() {
@@ -3,7 +3,6 @@ export class BaseSitemapUrlGeneratorManager {
3
3
  async generateUrls() {
4
4
  const map = new Map();
5
5
  for (const policy of this.policies) {
6
- console.debug(`Generating sitemap urls for policy: ${policy.filterCombination}`); // eslint-disable-line no-console
7
6
  const filterCombination = policy.filterCombination;
8
7
  const urls = await policy.generateSitemapUrls();
9
8
  console.debug(`Generated ${urls.length} urls for policy: ${filterCombination}`); // eslint-disable-line no-console
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.0.2-1",
3
+ "version": "8.0.2-3",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"