Back to SugarRush library

SalesCandy Git archive

SugarRush library

Provides shared SugarRush code for processing lead sources and incoming leads.

README

This repository provides shared code for processing lead sources and incoming leads across various modules. It centralizes logic to prevent duplication.

Use Case: Standardizing lead processing logic across multiple applications. Inputs are raw lead data from various sources. Outputs are standardized, processed lead records.

Selected files and folders

  • SugarRushFactory
  • candy.js
  • externalModule

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Fix undefined project data

Addresses instances where project data was undefined, preventing processing errors when handling lead source information.

a2df73435d72

Fix wrong Regex for URL cleaner candypixel

Corrects the regular expression used in the URL cleaner for CandyPixel, ensuring accurate and reliable URL parsing.

108a94ef2613

Limit leadsourceName to 128 character

Implements a length restriction on the leadsourceName field to 128 characters, preventing potential data truncation or issues with overly long source names.

4f46aaf33dc7

Selected commits

  1. Fix undefined project data

    Ele ·

    a2df73435d722819d11e2c448116be93d73c0f0d

  2. Merge branch 'release/v3.4.6-lead-import-campaigntracker' into 'master'

    Ele Elyiana ·

    8603148b4142eca6ce539d96d9c5984a1677e063

  3. Another checking

    Ele ·

    5650df80782aeb2285106eba466d9eb8026ea47a

  4. Fix wrong Regex for URL cleaner candypixel

    Ele ·

    108a94ef2613bead221ff9588ec034265553ae16

  5. Add Create CP from revamp

    Ele ·

    d16d2539da023417a75c39d9ad4cedc8d6d0827a

  6. Fix wrong mapping by frontend give error to iproperty manual mapping

    Ele ·

    b0929b6f777da2c65037bc53a30852a52b92f7ad

  7. Limit leadsourceName to 128 character

    Ele ·

    4f46aaf33dc71f48f6569ca35a918dbae46f3ca1

  8. - fix encodeURI generate 25 for % where it belongs to space.

    Ele ·

    efb394c5cea73e12660bdcbb17b9e13418683a04

  9. Fix make project key and value to lower case. to reduce case sensitive when multiple project

    Ele ·

    90f06dea58da5c3c588598fb4c90d1a830fd0cec

  10. CampaignTracker with candycrumbs

    Ele ·

    f30ab45ee5fab4cfe437fac07c37c2681fe86504

  11. fix mapping. when the field not same as fieldname for project, set as notAssigned.

    Ele ·

    3f67023405eee18502a9722bc9903e888e7cc7c7

  12. CandyFacebook CampaignTrackers

    Ele ·

    83b12fd0b039ede3a2314c987510eeefdc48f62e

  13. Add campaignTrackers for ipropertyAPI

    Ele ·

    12ecc587a874e38ac8526ddf9f23341a9be10ea2

  14. Add CampaignTrackers for leads in CandyMail

    Ele ·

    e6080178cbe56b71f482999328ff551f67be19b9

  15. Add CandyCrumbs for leadsource api

    Ele ·

    963c4af9da6df9ef9f8c505626c3df343587a104

  16. Manual Lead Import

    Ele ·

    8ad7a3b9b98d4c3689652fac0ecd336aab908def

  17. Add renovate.json

    Renovate Bot ·

    b4552598e90223d5da5d8cb7670ecb6009a1ddd6

  18. pass checkbox in array. but still got error from candymuncher.

    Ele ·

    e3127182d9fc3ccf227a8ca462294fc259536c85

  19. add defaultfield for checking

    Ele ·

    d343653941901a1e350b277fdab2d6f8b5111134

  20. Upgrade from v6 to v8

    Ele ·

    4c61eda93bdde08829bea5aa8e3896f2684a9c9a

  21. Refactor code for project subscribe

    Ele ·

    a1a5748175f55971f4f969e30e7e2275bfcf516d

  22. Add checking for leadsource and project if active only pass the data.

    Ele ·

    0e1f27deb7cfacf91db00242d4afbd932194a273

  23. Change SmartAlert data structure.

    Ele ·

    182a30e8926475eb94c8733d2c03974cd9beb2c1

  24. Change Type and SRType for origin in lead data Change extractField to extractFieldManual to grab correct data consistently.

    Ele Elyiana ·

    af99469d0814c1310db85169635be6131d685d20

  25. checkbox-name-type change to checkbox_name_type

    Ele Elyiana ·

    2b0b14478bdd862a088bb2980323342ed0ea4948

  26. Change candyMailbox to snippet

    Ele Elyiana ·

    e20a30a65456a3d14fdd0bed65c9bbd5346ef231

  27. Add email generator for candymailbox.

    Ele Elyiana ·

    cac6efab311783eb75a260319b2593f1e7eba044

  28. Initial Library

    Ele Elyiana ·

    8ed65738b83528992249ec842b59e41ed35aaca3